hi all,
i have a little trouble with strpos().
i'm using it to check if the stingA is conatined in the stringB like this (on this server stripos() doesn't work?!? php 4.2)
if( strpos(strtoupper($stringB),strtoupper(trim($stringA))) )
the problem is that if stringB is a frase of 2 or more words and stringA is the first word it returns false....
i also tryed:
if( (strpos(strtoupper($stringB),strtoupper(trim($stringA)))) === 1 )
but that doesn't work at all...
how should i make it find the first word?
thanks...