Hi to all, I have this problem. I want to know if a string contains another string. Example: $string="7,10,5,3,0"; $part="5,"; How can I know if $part is contained in $string?
Thanks _ Daniele
http://www.php.net/manual/en/function.strstr.php
Thanx!!
It really helped!
_
Becareful, because if the string is "25,0,1,2,3" and you're looking for "5", then it will find it in the string...Don't know if this behavior is appropiate for your application, but I just thought I'd mention it...
Diego