Problem -- when the needle string is the first thing in the string, STRIPOS() returns zero or false.
I don't care what function I use, but I need to get a "true" when the needle string is present anywhere in the haystack string, even at location zero.
Is there some way to set up the STRIPOS() statement?
I've tried:
Code: Select all
if ((stripos($title, 'needle') > 0 )
if ((stripos($title, 'needle') = true )Code: Select all
if ((stripos($title, 'needle') >= 0 )Any help appreciated -- including a different approach.
thanks,
Tom