Protected Super Global Array
| From: | Sancar Saran | Date: | Tue, 18 Dec 2007 23:03:59 +0000 |
| Subject: | Protected Super Global Array | ||
| Groups: | php.evangelism | ||
| Request: | Send a blank email to php-evangelism+get-467@lists.php.net to get a copy of this message | ||
Hello,
I'm not sure this was right place to ask this.
Is there any possibility to add this kind of ability to php core.
I want to create my suber global array with protection option option. Someting
like that.
new_super_global('myGlobal','mySignature')
reading data from this super global was simple like $GLOBALS and updating this
global someting like.
update_super_global('myGlobal',mySignature,keyName,data)
Yes of course we can use $GLOBALS. Everyone says it was not good idea because
someting else. There where some windows registry thingy implementation's.
Last time I was try to use Zend_Registry. Yep it works. and in every function
I have to call it.
And tell me where is the benefit.
Regards
Sancar