String Search???
Posted: Thu Jul 29, 2004 12:18 am
I need to code a search on a string and have it return a boolean value. For instance:
$string = "dog cat fish horse";
$result = stringsearchfunction('dog', $string);
Is there such a thing? I know there is a str_replace, but that doesn't return a boolean value.
Thanks!
$string = "dog cat fish horse";
$result = stringsearchfunction('dog', $string);
Is there such a thing? I know there is a str_replace, but that doesn't return a boolean value.
Thanks!