Hi,
I couldn't get what exactly you want.
If i am not mistaken you are looking for a function to check whether the key word(string) is there in the search string.If so,there is no such function which returns true or false,try using this
function compareString($string,$keyword)
{
if(strpos($string,$keyword)>=0)
{
$flag=true;
}
else
{
$flag=false;
}
return $flag;
}