Re: Session output question

From: Date: Wed, 22 Oct 2003 20:53:14 +0000
Subject: Re: Session output question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167167@lists.php.net to get a copy of this message
* Thus wrote Susan Ator (SAtor@npr.org): > > 2) Is there any way to use a variable in a session name? > > can I do: > $msg="20031022" > $_SESSION["$msg.name"] becomes $_SESSION['20031022name'] In this case the _SESSION key is 20031022.name. You'll want something like: $_SESSION["{$msg}name"] or $_SESSION[$msg.'name'] Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#167167) next »