php array conversion from two to one dimension -


i have array following.

array(1) {   ["foo"]=>   array(2) {     [1]=>     string(5) "abcde"     [2]=>     string(4) "pqrs"    } } 

now want convert following

array(2) {   [1]=>   string(5) "abcde"   [2]=>   string(4) "pqrs" } 

how can achieve that?

i hope job:

$onedimensionalarray = call_user_func_array('array_merge', $twodimensionalarray); 

please have @ array_merge.


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -