RE: [PHP] Value of variable with name stored in another variable
| From: | Ford, Mike [LSS] | Date: | Thu, 13 Jun 2002 16:28:05 +0000 |
| Subject: | RE: [PHP] Value of variable with name stored in another variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101988@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Daniele Baroncelli [mailto:daniele@baroncelli.com]
> 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!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211