Re: $_SESSION only takes 1 character?

From: Date: Tue, 01 Oct 2002 14:37:45 +0000
Subject: Re: $_SESSION only takes 1 character?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118374@lists.php.net to get a copy of this message
Hello, On Tuesday, October 01, 2002 11:13 PM Subject: [PHP] $_SESSION only takes 1 character? Tim Stoop wrote: > Hi there, > > I've got some strange behaviour here (at least, I can't explain it). I'm > running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my > little app and want to use the $_SESSION-variable to keep track of all my > variabeles. > > Well, when I tell it > $_SESSION["something-intelligent"] = $myName; > echo($_SESSION["something-intelligent"]); > > I get "Tim" on my screen. But when I do: > > $nr = 12; > $_SESSION["things"]["$nr"]["intelligent"] = $myName; > echo $_SESSION["things"]["$nr"]["intelligent"]; > > I don't get any output at all! What happens? No error message? Nothing? Anyway, you can try this: echo "{$_SESSION["things"]["$nr"]["intelligent"]}"; >Can anyone shed any light on this? Thanks in > advance!! > - E

« previous php.general (#118374) next »