<?php function &foo() { static $bar = null; if ($bar === null) { $bar[] = 'init'; } return $bar; } $array = &foo(); $arary[] = 'fot'; // var_dump(foo());
You have javascript disabled. You will not be able to edit any code.