If you don't like to understand.
I'd like to understand, but you don't seem to be able to make us understand.
Not attacking your english ofcourse.
In my version I do only:
1. read variables from $GLOBALS to memorize the keys
2. unset($variables) from global scope that are not memorized
There is nothing special! This must be possible and 100% allowed in php.
This is the first time you mention that.
Indeed that is nothing special, but it's also a very dumb thing to do.
The other way $GLOBALS=$MyGlobals; is indeed a more special thing.
But this isn't the topic of my question.
It has been from your first post:
-- Because what I need is: $GLOBALS=$MyArray;
The question is again and again: Why global $GLOBALS; in one program works
fine and in an other program fails?
It probably always fails, but in one case you don't notice.
But in the meantime have the answer from an other much better german php > board.
"Never mind, I found it on a better board". That's the standard answer that everyone gives when he doesn't understand or like the answers he gets here.
Objects are not usefull because I don't know today which third party code I > want to include.
You do know what objects are?