I have the following array:
Array (
[0] => Array
(
[example] => 'h'
)
[1] => Array
(
[example] => 'e'
)
[2] => Array
(
[example] => 'l'
)
[3] => Array
(
[example] => 'p'
)
)
And I am wondering how can I change this array to look like this instead.
Array( [example] => 'h', [example] => 'e', [example] => 'l', [example] => 'p')
I have tried using a nested foreach loop but using that I only get the values and not as an array.