[PHP] inserting a variable into a variable

2001-06-20 Thread Hasan Niyaz
Hello all, I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt The above is a variable and $cat is again another variable This does not work.. Need some help! Thanks, Hasan

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread Peter Houchin - SunRentals Australia
why don't you do something like $var = $foo $baa; ? -Original Message- From: Hasan Niyaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] inserting a variable into a variable Hello all, I have come

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread mailing_list
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

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread Ray Hilton
Message- From: Hasan Niyaz [mailto:[EMAIL PROTECTED]] Sent: 20 June 2001 04:07 To: [EMAIL PROTECTED] Subject: [PHP] inserting a variable into a variable Hello all, I have come to a situation where i am having a variable inside another variable. for example. $rm_$cat_adt The above

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Tom Carter
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

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Hasan Niyaz
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

RE: [PHP] inserting a variable into a variable

2001-06-20 Thread scott [gts]
it's there for ;) -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 5:24 AM To: Hasan Niyaz; [EMAIL PROTECTED] Subject: Re: [PHP] inserting a variable into a variable I have come to a situation where i am having a variable inside

Re: [PHP] inserting a variable into a variable

2001-06-20 Thread Jonathan Sharp
just use a hash... that's what it's there for ;) -Original Message- From: Tom Carter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 5:24 AM To: Hasan Niyaz; [EMAIL PROTECTED] Subject: Re: [PHP] inserting a variable into a variable I have come to a situation