I have an array containing single key objects like so:
Array
(
[0] => stdClass Object
(
[state] => 1
)
[1] => stdClass Object
(
[state] => 1
)
)
I want it to look like this:
Array
(
[0] => 1
[1] => 1
)
What is the most efficient way of doing this? I'm not quite sure how to put this problem in simple words, so I can't google it either.