RE: [PHP] Can I name a session variable using another variable?

2004-09-13 Thread Ed Lazor
Here's another option as well, in case it helps out: $var1 = "Pizza"; $var2 = "var1"; $var3 = $$var2; print "var3 = $var3"; Output: var3 = Pizza > -Original Message- > Ok, assuming everything's working correctly except for the use of > $prevtime in the SESSION, then here's one answer

RE: [PHP] Can I name a session variable using another variable?

2004-09-13 Thread Gryffyn, Trevor
Ok, assuming everything's working correctly except for the use of $prevtime in the SESSION, then here's one answer: Yes, you can name a session the way you described. If you're having trouble with doing the concatenation of values inside $_SESSION, then try combining them outside: $roomname="sam