Determine if a string contains a particular substring with strpos(). Remember, it returns false if the substring is not found.
Source Code
$myString = "Hello, World!";
if (strpos($myString, "World") !== false) {
echo "The string contains 'World'.";
}