$string = "The quick brown fox jumps over the lazy dog"; if (strpos($string, "fox") !== false) { echo "The string contains 'fox'"; } else { echo "The string does not contain 'fox'"; }
$string = "The quick brown fox jumps over the lazy dog"; if (strpos($string, "fox") !== false) { echo "The string contains 'fox'"; } else { echo "The string does not contain 'fox'"; }