Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If it's simpler, then you can use the banal strpos , which will return you "not zero" if the string contains the substring you need.
$pos = strpos('бот реагировал на конкретные слова в предложениях', 'бот');
if ($pos === false) {
echo "Подстрока не найдена";
} else {
echo "Подстрока найдена";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question