Некоторый код :
Код: Выделить всё
foreach ($socialstream as $key => $social) {
//filtering in here
$result= $this->search_objects($social);
....
}
Код: Выделить всё
function search_objects($objects)
{
$filters = array('word', 'test');
foreach ($objects as $key => $value) {
if (is_array($value) || is_object($value)) {
$this->search_objects($value);
} else {
//look for faulty strings in value
foreach ($filters as $filter) {
if (!is_int($value) && strpos($value, $filter) !== false) {
return true;
}
}
}
}
return false;
}
Что мне не хватает?
Подробнее здесь: https://stackoverflow.com/questions/207 ... urns-false