Re: Using a variable to call another variable [SOLVED]
| From: | Dave M G | Date: | Sun, 10 Sep 2006 02:59:01 +0000 |
| Subject: | Re: Using a variable to call another variable [SOLVED] | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241552@lists.php.net to get a copy of this message | ||
Martin, Tedd, Robert, Christopher,
Thank you all for your advice and examples.
I had not been aware that it was possible to simply add another "$" ahead of the variable, to make a variable of the variable's name.
And especially thank you for expressing an example in terms of a class and method, which is my ultimate intent with this process.
I will also make sure to name my variables with at least one leading alphabet character. Thanks for the warning.
All your time and expert advice is much appreciated.
--
Dave M G
Ubuntu 6.06 LTS
Kernel 2.6.17.7
Pentium D Dual Core Processor
PHP 5, MySQL 5, Apache 2