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 loops are not functions.An ampersand(&) at foreach does not work to preserve the values like at functions. So even if you have $var in the second foreach () do not expect it to be like a "ghost" out of the loop.