fork(2) 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. array_unshift($arr, null);
  10. $res = call_user_func_array("array_map", $arr);
  11. print_r($res);
Success #stdin #stdout 0.03s 23804KB
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
        )

)