php array conversion from two to one dimension -
this question has answer here:
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
Post a Comment