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,837
  • 3
  • 27
  • 41
alphy
  • 871
  • 4
  • 13
  • 22

2 Answers2

0

Assuming:

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

This works:

$array = array_map('current', $array);
deceze
  • 491,798
  • 79
  • 706
  • 853
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,766
  • 1
  • 16
  • 19