Answers for "php search in object. array"

PHP
-1

php search in object. array

$neededObject = array_filter(
    $arrayOfObjects,
    function ($e) use (&$searchedValue) {
        return $e->id == $searchedValue;
    }
);
Posted by: Guest on September-09-2020

Browse Popular Code Answers by Language