Answer the question
In order to leave comments, you need to log in
Is there a way to check if each element of an array is in a string without a loop?
There is an array of strings:
A long string comes from the server:
How to check if at least one element of the array is in a string?
$array = ['Привет', 'Здравствуйте', 'Хай'];
$str = 'Здравствуйте, как дела?';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question