php find if substring is in string
snippet in php

php find if substring is in string

user6198

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

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