Take a look to this code, and help me to understand the result
$x = array('hello', 'beautiful', 'world');
$y = array('bye bye','world', 'harsh');
foreach ($x as $n => &$v) { }
$v = "DONT CHANGE!";
foreach ($y as $n => $v){ }
print_r($x);
die;
It prints:
Array
(
[0] => hello
[1] => beautiful
[2] => harsh
)
Why it changes the LAST element of the $x? it just dont follow any logic!