Re: array to var - with different name

From: Date: Fri, 21 Jan 2011 05:42:36 +0000
Subject: Re: array to var - with different name
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-310940@lists.php.net to get a copy of this message
On Thu, Jan 20, 2011 at 05:29:01PM -0600, Donovan Brooke wrote: [snip] > > > Shawn, I don't know if I have a good reason, other than I rather like > working with string vars instead of array vars from $_REQUEST for > (sticky forms and conditionals). I can check/verify them as well in the > process. You should probably get used to dealing with the array variables. However, you can also look at the extract() function. It won't do exactly what you want, but it will pull the array keys/values into the current symbol table. Use with caution (note the second parameter to the function). Paul -- Paul M. Foster http://noferblatz.com

« previous php.general (#310940) next »