<?php $trans = array( array(1, 2), array(3, 4), array(5, 6)); array_unshift($trans, null);$trans = call_user_func_array('array_map', $trans);var_dump($trans);
Standard input is empty
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) } }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!