find string exist in string php

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

if ($result != false)
{
  // text found
}
Source

Also in PHP: