Re: $ vs $$
| From: | jeremy brand | Date: | Sun, 19 Nov 2000 11:51:08 +0000 |
| Subject: | Re: $ vs $$ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26123@lists.php.net to get a copy of this message | ||
In case anyone needs to see this in action, I have a short function
which utilizes it.
The reason for this function is to provide search engine friendly
URLs.
http://www.nirvani.net/software/variables_from_uri.php.asc
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
On Sun, 19 Nov 2000, Max Derkachev wrote:
> Date: Sun, 19 Nov 2000 14:43:14 +0300
> From: Max Derkachev <kot@books.ru>
> To: Dallas Kropka <dallask@firstworld.net>
> Cc: PHP LIST <php-general@lists.php.net>
> Subject: Re: [PHP] $ vs $$
>
> $$ dereferences variables' names, just like in perl. Using $$ you'll get variable
> variable's name. E.g.:
> $var = 'myvar';
> $$var = 1 ; // equivalent to ${$var} = 1 and actually means $myvar = 1.
>
> Dallas Kropka wrote:
>
> > I have seen places where $$ is used. When should I use $$ and what does it do.
> >
> > Thank you.
> > Dallas K.
>
> --
> Best regards,
> Max A. Derkachev mailto:kot@books.ru
> Symbol-Plus Publishing Ltd.
> phone: +7 (812) 265-0054, 265-1228, phone/fax: 567-8775
> http://www.Books.Ru -- All Books of Russia
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>