Print that delete it and enable warnings to see what really happens ! =)
$GLOBALS contains GLOBALS . You unset it, which removes the actual global variable. If this were just step-by-step behavior, you would get an empty array, not NULL .
source share