note 82181 added to language.variables.scope
| From: | tomodachi at osu1 dot php dot net | Date: | Mon, 31 Mar 2008 00:16:20 +0000 |
| Subject: | note 82181 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137775@lists.php.net to get a copy of this message | ||
@ben writes:
eval('global $' . join(',$', array_keys($GLOBALS)) . ';');
You may find extract($GLOBALS) useful. (also, note the optional EXTR_REFS flag)
----
Server IP: 190.2.55.3
Probable Submitter: 190.30.172.157
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- https://master.php.net/note/edit/82181
Del: integrated -- https://master.php.net/note/delete/82181/integrated
Del: useless -- https://master.php.net/note/delete/82181/useless
Del: bad code -- https://master.php.net/note/delete/82181/bad+code
Del: spam -- https://master.php.net/note/delete/82181/spam
Del: non-english -- https://master.php.net/note/delete/82181/non-english
Del: in docs -- https://master.php.net/note/delete/82181/in+docs
Del: other reasons-- https://master.php.net/note/delete/82181
Reject -- https://master.php.net/note/reject/82181
Search -- https://master.php.net/manage/user-notes.php