Re: inserting a variable into a variable

From: Date: Wed, 20 Jun 2001 06:46:59 +0000
Subject: Re: inserting a variable into a variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54459@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 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

« previous php.general (#54459) next »