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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -