Is there a way to combine
if ((strpos($str,"abc") !== false) and (strpos($str,"abc") < 1000))
Or do I need two ifs for that? Because if abc isn't in the string the position is -1 so smaller than 1000.
I am only interested if php have some special for this problem ;)
Is this:
if (strpos(substr($str,0,1000),"abc") !== false)
a good way for it?