1--TEST--
2traverse an array and use its keys to unset GLOBALS
3--FILE--
4<?php
5
6$arr = array("a" => 1, "b" => 2);
7foreach ($arr as $key => $val) {
8	unset($GLOBALS[$key]);
9}
10
11var_dump($arr);
12echo "Done\n";
13?>
14--EXPECT--
15array(2) {
16  ["a"]=>
17  int(1)
18  ["b"]=>
19  int(2)
20}
21Done
22