Строка PHP содержит подстроение
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
Grepper
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
echo "My string contains Bob";
}
fnmatch("*ti*o*", 'Tiago');//false
fnmatch("*ti*o*", 'Tiago', FNM_CASEFOLD);//true