fork download
  1. <?php
  2.  
  3. $arr = array(
  4. 'A' => array(10,20,30),
  5. 'B' => array(100,200,300),
  6. 'C' => array(1000,4000,9000)
  7. );
  8.  
  9. $res = array_map(null, $arr["A"], $arr["B"], $arr["C"]);
  10. print_r($res);
Success #stdin #stdout 0.02s 23552KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => 10
            [1] => 100
            [2] => 1000
        )

    [1] => Array
        (
            [0] => 20
            [1] => 200
            [2] => 4000
        )

    [2] => Array
        (
            [0] => 30
            [1] => 300
            [2] => 9000
        )

)