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 access the value of a variable
> -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!
2 matches
Mail list logo