<?php function fn($arr){ $arr[0][0] = 42;} $arr = [[43], 44, 45]; fn($arr); print_r($arr);
Standard input is empty
Array ( [0] => Array ( [0] => 43 ) [1] => 44 [2] => 45 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!