0

I have the following array as an output which stores different values at the same index

Array ( [0] => 79 ) Array ( [0] => 56 ) Array ( [0] => 3 ) 

how can i make it look like this

Array[0] ( [0] => 79 , [1] => 56 , [2] => 3 ) 
connectedsoftware
  • 6,987
  • 3
  • 28
  • 43
alphy
  • 931
  • 4
  • 13
  • 23

2 Answers2

0

Assuming:

$array = array(array(79), array(56), array(3));

This works:

$array = array_map('current', $array);
deceze
  • 510,633
  • 85
  • 743
  • 889
0

I believe you are looking for array_merge.

You would use as such:

$ret = array_merge($array1, $array2, $array3);

Numeric keys get renumbered.

meiamsome
  • 2,876
  • 1
  • 17
  • 19