Connecting Tech Pros Worldwide Forums | Help | Site Map

$$key = $value?

Gilles Ganault
Guest
 
Posts: n/a
#1: Mar 24 '08
Hello

I'm reading articles on how to validate forms, and happened on the
following section:

foreach($_POST as $key=>$value) {
$$key = $value;
}

http://www.phphacks.com/content/view/31/33/

What does "$$key=$value" do?

Thank you.

Gilles Ganault
Guest
 
Posts: n/a
#2: Mar 24 '08

re: $$key = $value?


On Mon, 24 Mar 2008 03:20:06 -0700 (PDT), ELINTPimp
<smsiebe@gmail.comwrote:
Quote:
>$$key is a variable variable:
>http://us3.php.net/language.variables.variable
Thanks for the answer.
Closed Thread