note 44026 deleted from function.get-defined-vars by danbrown

From: Date: Fri, 06 Feb 2009 00:53:11 +0000
Subject: note 44026 deleted from function.get-defined-vars by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150281@lists.php.net to get a copy of this message
Note Submitter: sijmen at digitized dot nl ---- 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

« previous php.notes (#150281) next »