note 52343 deleted from language.variables.scope by crell
| From: | crell@php.net | Date: | Thu, 31 Mar 2022 19:39:14 +0000 |
| Subject: | note 52343 deleted from language.variables.scope by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-217931@lists.php.net to get a copy of this message | ||
Note Submitter: kouber at php dot net
----
If you need all your global variables available in a function, you can use this:
<?php
function foo() {
extract($GLOBALS);
// here you have all global variables
}
?>