RE: [PHP] Value of variable with name stored in another variable
| From: | John Holmes | Date: | Thu, 13 Jun 2002 16:30:19 +0000 |
| Subject: | RE: [PHP] Value of variable with name stored in another variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101989@lists.php.net to get a copy of this message | ||
Echo $$field;
--John Holmes...
> -----Original Message-----
> From: Daniele Baroncelli [mailto:daniele@baroncelli.com]
> Sent: Thursday, June 13, 2002 12:27 PM
> To: php-general@lists.php.net
> Subject: [PHP] Value of variable with name stored in another variable
>
> 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