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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -