I have an array that contains 4 arrays with one value each.
array(4) {
[0]=>
array(1) {
["email"]=>
string(19) "[email protected]"
}
[1]=>
array(1) {
["email"]=>
string(19) "[email protected]"
}
[2]=>
array(1) {
["email"]=>
string(19) "[email protected]"
}
[3]=>
array(1) {
["email"]=>
string(19) "[email protected]"
}
}
What is the best (=shortest, native PHP functions preferred) way to flatten the array so that it just contains the email addresses as values:
array(4) {
[0]=>
string(19) "[email protected]"
[1]=>
string(19) "[email protected]"
[2]=>
string(19) "[email protected]"
[3]=>
string(19) "[email protected]"
}