note 33346 added to function.get-defined-vars

From: Date: Mon, 23 Jun 2003 16:38:23 +0000
Subject: note 33346 added to function.get-defined-vars
Groups: php.notes 
Request: Send a blank email to php-notes+get-50884@lists.php.net to get a copy of this message
I just did a var_dump(get_defined_vars()) after an include, and it most definitely DID show the variables that were set inside the include. It did not show variables that were set inside FUNCTIONS inside the included or the page itself, this is a function of scope. But variables set inside the include page but not within functions are available to the calling page. ---- Manual Page -- http://www.php.net/manual/en/function.get-defined-vars.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33346 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33346&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33346&report=yes

« previous php.notes (#50884) next »