Use the function below to search a string within a string. This function is case-insensitive. Use stristr for case-insensitive and strstr for case-sensitive.
<?php function search_string($string, $needle) { if (stristr($string, $needle) === false) { return false; } else { return true; } } ?>