Re: PHP 4.0 Bug #8100 Updated: extract(), extra feature

From: Date: Mon, 04 Dec 2000 19:58:45 +0000
Subject: Re: PHP 4.0 Bug #8100 Updated: extract(), extra feature
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40029@lists.php.net to get a copy of this message
Assign it to me, please. On Mon, 04 Dec 2000, waldschrott@php.net wrote: > ID: 8100 > Updated by: waldschrott > Reported By: joel.jacobson@mobigym.se > Status: Analyzed > Bug Type: Feature/Change Request > Assigned To: > Comments: > > 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) > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-12-04 14:19:44] joel.jacobson@mobigym.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. > > --------------------------------------------------------------------------- > > > Full Bug description available at: http://bugs.php.net/?id=8100 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei When we eliminate the impossible, whatever remains, however improbable, must be true. -- Sherlock Holmes

« previous php.dev (#40029) next »