Page 1 of 1

String Search???

Posted: Thu Jul 29, 2004 12:18 am
by Base
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!

Posted: Thu Jul 29, 2004 12:28 am
by feyd
strstr, strpos