|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-12-04 14:19 UTC] joel dot jacobson at mobigym dot se
It would be nice if you could instruct the extract() function to extract the variables as global variables. That way one could use the extract() function in functions and make the variables available outside the function. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
you can easily do... foreach (array("foo"=>"bar","bar"=>"foo") AS $varname => $value) { $GLOBALS[$varname]=$value; } but right, it could be handy to have extract()s options available (extract_type,prefixing)