The main thing that is silly about this is that each of these super globals is already setup in key, value pairs (which is what this foreach is doing). Second, this snippet is running a foreach through each of the super globals, but it isn’t storing the data in a new array, it’s simply creating a new variable each time, meaning only the very last item in each super global will be available after the foreach.

Ditto to Eric Mann. It’s still stupid, but they are doing a brute-force extract() with variable variables, not overwriting their $key over and over. They must be nostalgic for PHP 4’s register globals.