Michi,

Yours did the trick...
thank you and everyone else who contributed.

Hasan

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Hasan Niyaz" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 11:46 AM
Subject: Re: [PHP] inserting a variable into a variable


> > I have come to a situation where  I am having a variable inside another
> > variable.
> > for example.
> > 
> > $rm_$cat_adt
> 
> This works for me:
> 
> <?
>   $cat="def";
>   ${"abc_".$cat."_ghi"}=TEST;
>   echo '"abc_".$cat."_ghi" = '.${"abc_".$cat."_ghi"}."<br>\n";
>   echo '"abc_def_ghi" = '.$abc_def_ghi."<br>\n";
> ?>
> 
> michi
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> --
> GMX Tipp:
> 
> Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
> http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to