fork(13) download
  1. <?php
  2.  
  3. $trans = array(
  4. array(1, 2),
  5. array(3, 4),
  6. array(5, 6)
  7. );
  8.  
  9. array_unshift($trans, null);
  10. $trans = call_user_func_array('array_map', $trans);
  11. var_dump($trans);
  12.  
Success #stdin #stdout 0.02s 24448KB
stdin
Standard input is empty
stdout
array(2) {
  [0]=>
  array(3) {
    [0]=>
    int(1)
    [1]=>
    int(3)
    [2]=>
    int(5)
  }
  [1]=>
  array(3) {
    [0]=>
    int(2)
    [1]=>
    int(4)
    [2]=>
    int(6)
  }
}