Re: string concatenation
| From: | David Robley | Date: | Thu, 26 Jul 2001 01:09:59 +0000 |
| Subject: | Re: string concatenation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59655@lists.php.net to get a copy of this message | ||
On Thu, 26 Jul 2001 06:54, Seb Frost wrote:
> OK let's say in variable $search I have the string "color" (without the
> quote marks).
>
> now I want to be able to refer to the variable $color in my code.
>
> How in gods name do I do this. I guess somehow I have to combine a "$"
> with the contents of £search or something...?
>
> - seb
Feel free to trim all the ireelevant stuff from your posts :-)
Try $$search or ${color} depending on exactly what you want to do. You
might want to have another read through the Variable variables section of
the documentation to clarify this.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
I tried switching to gum but couldn't keep it lit.