Edit report at http://bugs.php.net/bug.php?id=8100&edit=1
ID: 8100 Updated by: [email protected] Reported by: joel dot jacobson at mobigym dot se Summary: extract(), extra feature -Status: Assigned +Status: Wont fix Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: Linux 2.4.0-test11 PHP Version: 4.0.3pl1 -Assigned To: andrei +Assigned To: Block user comment: N Private report: N New Comment: No way, there are enough tools to shoot yourself in the foot already. Previous Comments: ------------------------------------------------------------------------ [2000-12-04 15:02:05] [email protected] assigned ------------------------------------------------------------------------ [2000-12-04 14:55:48] [email protected] 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) ------------------------------------------------------------------------ [2000-12-04 14:19:44] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=8100&edit=1
