Req #8100 [Asn->Wfx]: extract(), extra feature

From: Date: Wed, 01 Dec 2010 15:22:38 +0000
Subject: Req #8100 [Asn->Wfx]: extract(), extra feature
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156647@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=8100&edit=1 ID: 8100 Updated by: jani@php.net 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] waldschrott@php.net assigned ------------------------------------------------------------------------ [2000-12-04 14:55:48] waldschrott@php.net 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

« previous php.bugs (#156647) next »