- var_dump: documentation ( source)
<?php
function f($var){ // not using references
foreach($var as $k => $v){
unset($var[$k]); // shouldn't this unset from a copy?!
}
}
print '<pre>';
var_dump($GLOBALS); // array
f($GLOBALS);
var_dump($GLOBALS); // null?!