note 14643 added to language.variables.scope.php
| From: | php-general at lists dot php dot net | Date: | Tue, 07 Aug 2001 16:55:13 +0000 |
| Subject: | note 14643 added to language.variables.scope.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16444@lists.php.net to get a copy of this message | ||
I find this works to import all global variables to a function
foreach($GLOBALS as $gkey => $gval) {
eval("global \$$gkey;");
}
Thanks
Richard
http://www.php.net/manual/en/language.variables.scope.php