<?php function a(&$a, &$b, &$c) { $a = 42; } $foo = [1, 2, 3]; $bar = [3, 4, 5]; // this does not make the zvals referenced. a($foo[0], $foo[1], $foo[2]); $diff = array_diff($foo, $bar); $foo[1] = 'hi'; var_dump($diff);
You have javascript disabled. You will not be able to edit any code.