Connecting Tech Pros Worldwide Help | Site Map

$$key = $value?

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 24th, 2008, 09:25 AM
Gilles Ganault
Guest
 
Posts: n/a
Default $$key = $value?

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.

  #2  
Old March 24th, 2008, 11:45 AM
Gilles Ganault
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.