<?php function assign_by_ref(&$ref) { $ref = 42; } $a = []; assign_by_ref($a[]); var_dump($a);
You have javascript disabled. You will not be able to edit any code.