Re: [PHP] How to use string as variable name?

2002-11-21 Thread -<[ Rene Brehmer ]>-
Hi Adam Voigt, On 18 Nov 2002 13:11:30 -0500, you wrote about "Re: [PHP] How to use string as variable name?" something that looked like this: >$date = "2002-11-22"; >$myvar = "a" . str_replace("-","",$date); >$$myvar = "hi&qu

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Marek Kilimajer
Convert $day="2002-11-22" to just $day="d20021122" and $$day will be really $d20021122 -<[ Rene Brehmer ]>- wrote: Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But h

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Adam Voigt
$date = "2002-11-22"; $myvar = "a" . str_replace("-","",$date); $$myvar = "hi"; echo "$a20021122"; Enjoy. On Mon, 2002-11-18 at 13:05, -<[ Rene Brehmer ]>- wrote: > Hi gang > > I'm suffering under the lack of an SQL, which would've made this loads > easier, so instead I'm forced at using a bunc

[PHP] How to use string as variable name?

2002-11-18 Thread -<[ Rene Brehmer ]>-
Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But here's the prob: I'm working on a list of premieredates for movies. Here's the HTML version I made to figure out how to