Re: [PHP] get access to define() constants with dynamic names

2002-10-02 Thread Heiko Mundle
Thanks, it works! Scott Houseman wrote: > Hi Heiko > > Try this: > $aName = "TEAM"; > eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = > G_T_TEAM > echo $myString; // Should print out SAFETOUR_team > > I haven't tested this, but it should work. > > Regards > > Scott > > O

Re: [PHP] get access to define() constants with dynamic names

2002-10-02 Thread Scott Houseman
Hi Heiko Try this: $aName = "TEAM"; eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = G_T_TEAM echo $myString; // Should print out SAFETOUR_team I haven't tested this, but it should work. Regards Scott On 10/2/2002 10:47 AM, Heiko Mundle wrote: > Hi all, > > my script knows