fork download
  1. <?php
  2.  
  3. $arr = [
  4. ['74','69'],
  5. ['45','1'],
  6. ['5','2'],
  7. ['88','3'],
  8. ['123.389,89', '12,33'],
  9. ];
  10.  
  11. print_r(array_column($arr, 0));
  12. print_r(array_column($arr, 1));
Success #stdin #stdout 0.02s 82880KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 74
    [1] => 45
    [2] => 5
    [3] => 88
    [4] => 123.389,89
)
Array
(
    [0] => 69
    [1] => 1
    [2] => 2
    [3] => 3
    [4] => 12,33
)