Is it possible to pass in array_column an array of objects? I have implemented ArrayAccess interface, but it has no effect. Should I implement another
array_column
Possible solution is prepare that array of objects:
$objectsList = []; foreach ($objs as $obj) { $objectsList[] = (array)$obj; } $propList = array_column($objectsList, 'prop');