Echo $$field;
--John Holmes...
> -Original Message-
> From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2002 12:27 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Value of variable with name stored in another variable
>
> How can I
> -Original Message-
> From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
> Sent: 13 June 2002 17:27
>
> How can I access the value of a variable whose name is stored
> in another
> variable?
>
> Example:
> $field="artist";
>
> How can I access the value of $artist ?
$$field
Cheers!
How can I access the value of a variable whose name is stored in another
variable?
Example:
$field="artist";
How can I access the value of $artist ?
Thanks
Daniele
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo