Sure,

$MyVar = "Contents";

$$MyVar  equals  $Contents.

Taken from the Manual, Language Reference (which everyone should read first =8),
Chapter 7: Variables / Variable Variables

Greetinx,
  Mike

Michael Rudel
- Web-Development, Systemadministration -
_______________________________________________________________

Suchtreffer AG
Bleicherstraße 20
D-78467 Konstanz
Germany
fon: +49-(0)7531-89207-17
fax: +49-(0)7531-89207-13
e-mail: mailto:[EMAIL PROTECTED]
internet: http://www.suchtreffer.de
_______________________________________________________________



> -----Original Message-----
> From: Will Degener [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 3:01 PM
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] Naming Variables Based on Variable Content
>
>
> Any ideas if this is possible and if so how ???
> Thanks in advance. - Will
>
> If I have a variable :
>
> $MyVar = "Contents";
>
> Can I create a variable at "runtime" that has a name based on
> the contents
> of $MyVar ?
> eg
>
> $Contents
>
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to