I have an array whose values are all arrays of a specific format that looks like this:
Array
(
[0] => Array
(
[username] => John
)
[1] => Array
(
[username] => Joe
)
[2] => Array
(
[username] => Jake
)
)
and I would like to have this:
Array
(
[0] => John
[1] => Joe
[2] => Jake
)
I can do this manually with a loop but is there a better way? If not, is it possible to do this for an array of objects that have a common attribute?