Convert nested array into single array using php -


i having nested output this

$arr = array();

$arr = array (size=2)

0 =>    array (size=2)       0 => string '28' (length=2)       1 => string '7973' (length=4)  1 =>    array (size=1)       0 => string '4595' (length=4) 

my expected output this

$new_array = array

0 => 28 1 => 7973 2 => 4595 

pls me solve this...

advance thanks....

this simple doing array_merge:

array_merge($arr[0], $arr[1]); 

php - array_merge

demo


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -