note 10884 deleted from functions.arguments by cmb
| From: | cmb@php.net | Date: | Tue, 26 Apr 2016 16:48:39 +0000 |
| Subject: | note 10884 deleted from functions.arguments by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205342@lists.php.net to get a copy of this message | ||
Note Submitter: david at petshelter dot net
----
With reference to the note about extract() by dietricha@subpop.com:
He is correct and this is great! What he does not say explicitly is that the extracted variable
names have the scope of the function, not the global namespace. (This is the appropriate behavior
IMO.) If for some reason you want the extracted variables to be visible in the global namespace,
you must declare them 'global' inside the function.