Is there a function wich accurately returns TRUE or FALSE if one string exists in a given string?
ex:
$mystring = "This contains an X";
if(in_string('X',$mystring))
echo "true";
else
echo "false";
And of course, it would return true.
Anything like that? Right now I use this:
if (strpos($mystring,'X') > -1)...
Works... but is a hack, and lame if PHP already has a function that does this... My searches on php.net and here yielf no luck.