Re: inserting a variable into a variable
| From: | Tom Carter | Date: | Wed, 20 Jun 2001 09:23:57 +0000 |
| Subject: | Re: inserting a variable into a variable | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54491@lists.php.net to get a copy of this message | ||
> I have come to a situation where i am having a variable inside another
variable.
> for example.
>
> $rm_$cat_adt
PHP would read this as trying to prepend the variable $cat_adt to the
variable $rm_
You seem to be trying to insert the variable $cat into the middle of a
variable.. possible, but probably better to slightly rethink your naming
strategy
HTH,
Tom
>
> The above is a variable and $cat is again another variable
> This does not work..
>
> Need some help!
>
>
> Thanks,
> Hasan
>