Using the value of a variable as a variable name
- From: "TheTeapot" <peteraward@xxxxxxxxx>
- Date: 29 Jun 2005 22:44:03 -0700
Hi there,
Is there a way to use a variable's value as part of a variable's name?
i.e
$var = array();
$var[id] = "somewhere";
$($var[id] . "outthere") = "asd";
//Get above line to translate to: $somewhereoutthere = "asd";
I hope I've explained myself fully, and I hope that this hasn't been
asked before.
Thanks,
TheTeapot
.
- Follow-Ups:
- Re: Using the value of a variable as a variable name
- From: Juha Suni
- Re: Using the value of a variable as a variable name
- Prev by Date: [Flag-FAQ] Re: How to make mulitlingual website?
- Next by Date: Re: How to make mulitlingual website?
- Previous by thread: PHP and/or Javascript
- Next by thread: Re: Using the value of a variable as a variable name
- Index(es):
Relevant Pages
|