$result = strpos("haystack", "needle"); if ($result != false) { // text found }
if (strpos($string, 'substring') !== false) { // do stuff }