<?php function test(&$arr) { static $a; var_dump($a); if (!isset($a)) { $a = &$arr; } } $arr = [1, 2, 3]; test($arr); test($arr);
You have javascript disabled. You will not be able to edit any code.