Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php search in object. array

$neededObject = array_filter(
    $arrayOfObjects,
    function ($e) use (&$searchedValue) {
        return $e->id == $searchedValue;
    }
);
 
PREVIOUS NEXT
Tagged: #php #search #array
ADD COMMENT
Topic
Name
2+1 =