note 81930 added to language.variables.scope
| From: | benFROMTHESITEyounevercall dot com at osu1 dot php dot net | Date: | Wed, 19 Mar 2008 21:40:38 +0000 |
| Subject: | note 81930 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137217@lists.php.net to get a copy of this message | ||
To make all globals available in a function:
eval('global $' . join(',$', array_keys($GLOBALS)) . ';');
Use with caution. "eval" is inherently dangerous.
----
Server IP: 82.80.248.162
Probable Submitter: 84.109.73.126
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- https://master.php.net/note/edit/81930
Del: integrated -- https://master.php.net/note/delete/81930/integrated
Del: useless -- https://master.php.net/note/delete/81930/useless
Del: bad code -- https://master.php.net/note/delete/81930/bad+code
Del: spam -- https://master.php.net/note/delete/81930/spam
Del: non-english -- https://master.php.net/note/delete/81930/non-english
Del: in docs -- https://master.php.net/note/delete/81930/in+docs
Del: other reasons-- https://master.php.net/note/delete/81930
Reject -- https://master.php.net/note/reject/81930
Search -- https://master.php.net/manage/user-notes.php