Answer the question
In order to leave comments, you need to log in
How to find key of similar value in array?
Array
(
[0] => Солнечный остров
[1] => Дом у Речного вокзала
[2] => Медовая поляна
[3] => Чистый ручей
)
Answer the question
In order to leave comments, you need to log in
$input = ['входящий массив', 'например ваш'];
$output = array_filter($input, function ($str) {return false !== stripos($str, 'например');});
print_r($output);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question