Re: RE: Grabbing ALL $_POST var at once.

From: Date: Thu, 09 May 2002 00:03:53 +0000
Subject: Re: RE: Grabbing ALL $_POST var at once.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96724@lists.php.net to get a copy of this message
> foreach(array_keys($_POST) as $varname){ > $$varname = $_POST[$varname]; > } A "cooler" version of the above is: extract($_POST); extract() has many options. See also: http://www.php.net/extract http://www.php.net/import_request_variables Regards, Philip Olson > > -----Original Message----- > > From: David J Jackson [mailto:david.j.jackson@pickledbeans.com] > > Subject: Grabbing ALL $_POST var at once. > > > > The code below works (but its ugly), but I know there has to be a why to > > grab all the $_POST[] at once and then parse them out? > > > > Isn't there a why for me to access them directory without > > reassigning them? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#96724) next »