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 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to