Проверьте, существует ли текст в String php
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
Samson Munyira
$a = 'How are you?';
if (strpos($a, 'are') !== false) {
echo 'true';
}
$myString = 'Hello Learn Tech Tips (Zidane)?';
if (strpos($myString, 'Zidane') !== false) {
echo "This string contains Zidane";
}
if (strpos($search, ' -') !== false) {
echo 'There is exclude pattern "-" in search expression';
}