q: extract() and get_defined_vars()
| From: | Aric Caley | Date: | Sat, 28 Jun 2003 00:39:45 +0000 |
| Subject: | q: extract() and get_defined_vars() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153232@lists.php.net to get a copy of this message | ||
am I assuming correctly that get_defined_vars() returns an array pretty much
like the $GLOBALS array?
If I call extract() inside of a function, then the variables it creates will
be local to that function, correct? OK, so, is there a way to get extract()
to define those variables as global, from within a function?