Menu
Can anyone tell me what would be the output of following code under php 5 and php 4? Any explanation would be appreciated.
[code=html]
function func(&$ak){
return $ak;
}
$a = array(‘a’,’b’,’c’);
foreach(array_keys($a) as $key){
$y = &func($a[$key]);
$z[]=&$y;
}
var_dump($z);