note 44026 added to function.get-defined-vars
| From: | sijmen at digitized dot nl | Date: | Tue, 13 Jul 2004 00:11:27 +0000 |
| Subject: | note 44026 added to function.get-defined-vars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73127@lists.php.net to get a copy of this message | ||
I was wondering what the difference was between get_defined_vars() and the array $GLOBALS. If you
call get_defined_vars() not from a function, then there is no difference. But, if you call it from
inside a function or class, then it will only return the available variables inside that
function/class.
- Sijmen Ruwhof
----
Manual Page -- http://www.php.net/manual/en/function.get-defined-vars.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44026
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44026&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44026&report=yes
Search -- http://master.php.net/manage/user-notes.php