find part of a string in a string php

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

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

Also in PHP: