Re: Re: $$ Variable?
| From: | Ernest E Vogelsinger | Date: | Thu, 13 Feb 2003 01:16:33 +0000 |
| Subject: | Re: Re: $$ Variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135383@lists.php.net to get a copy of this message | ||
At 03:49 13.02.2003, jtx@hatesville.com said:
--------------------[snip]--------------------
>Ok, but what does the $$name signify? Looking on php.net I couldn't find
>anything regarding it. Maybe I'm looking in the wrong place?
--------------------[snip]--------------------
In the example Philip gave, $name resolves to "foo", so $$name will
reference the variable named "$foo". This is called "variable variables"
and can be found in the manual at
http://www.php.net/manual/en/language.variables.variable.php.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/