Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array map

$catIds = array_map(function($o) { return $o->id;}, $objects);
Source by github.com #
 
PREVIOUS NEXT
Tagged: #array #map
ADD COMMENT
Topic
Name
8+7 =