[PHP] help with strings...

2001-08-31 Thread Stig-Ørjan Smelror
Hei all. I've got this string, $string = "test"; and I want to make a $t; out of $string. Is this possible? I tried ${substr($string, 0, 1)}, but that didn't work ;) Any help appreciated. TIA. -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N

Re: [PHP] help with strings...

2001-08-31 Thread Papp Gyozo
$GLOBALS[substr($string, 0, 1)] or : $tmp = substr($string, 0, 1); ${$tmp} = 'add whatever value you want'; - Original Message - From: Stig-Ørjan Smelror <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 31, 2001 9:35 AM Subject: [PHP] help with

Re: [PHP] help with strings...

2001-08-31 Thread Philip Olson
gt; - Original Message - > From: Stig-Ørjan Smelror <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, August 31, 2001 9:35 AM > Subject: [PHP] help with strings... > > > > Hei all. > > > > I've got this string, $string = "te