I have an array that looks like this:
$array = array(
[0] => array( [key] => val1 ),
[1] => array( [key] => val2 ),
[2] => array( [key] => val3 ),
...
)
I want to make it look like this:
$array = array(
[0] => val1 ),
[1] => val2 ),
[2] => val3 ),
...
)
Obviously I could just loop through the array and construct a new array, but is there any more efficient way to do what I'm describing?