note 23191 added to language.variables.predefined

From: Date: Thu, 11 Jul 2002 12:37:23 +0000
Subject: note 23191 added to language.variables.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-32901@lists.php.net to get a copy of this message
I wanted to do this: extract($_GET,EXTR_OVERWRITE); but it didn't seem to work. I finally realised the problem was that I was calling extract inside a function and all the variable were being put into the symbol table at LOCAL scope. I simply put the contents of the function inside a new php file and replaced all the calls to the function with a include_once "extract.php"; This solved it -- http://www.php.net/manual/en/language.variables.predefined.php http://master.php.net/manage/user-notes.php?action=edit+23191 http://master.php.net/manage/user-notes.php?action=delete+23191 http://master.php.net/manage/user-notes.php?action=reject+23191

« previous php.notes (#32901) next »