How can I convert and object like this:
Array(
Object(
'id' => 1
),
Object(
'id' => 2
),
Object(
'id' => 3
),
)
To and array like this:
Array(1,2,3)
Without using a for loop. Is there some pre-built function in php to accomplish that?