There's many way to do it, depending of what
you want to do exactly ;
for instance, using the strstr() function :
$string = "PHP";
$container = "I love writing PHP code.";
if (strstr($container,$string))
{
echo "found it.";
}
else
{
echo "not found.";
}