str_includes php code example
Example 1: str_includes php
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
Example 2: php find multiple strings in string
if(preg_match('(bad|naughty)', $data) === 1) { }