note 23191 deleted from language.variables.predefined by dams

From: Date: Sun, 28 Jul 2002 14:50:08 +0000
Subject: note 23191 deleted from language.variables.predefined by dams
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33825@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

« previous php.notes (#33825) next »