fork(1) download
  1. <?php
  2.  
  3. function fn($arr)
  4. {
  5. $arr[0][0] = 42;
  6. }
  7.  
  8. $arr = [[43], 44, 45];
  9.  
  10. fn($arr);
  11.  
  12. print_r($arr);
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => 43
        )

    [1] => 44
    [2] => 45
)