find a string in another one phph

PHP
$result = strpos("haystack", "needle");

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

Also in PHP: