Re: sessions
| From: | Jeroen Serpieters | Date: | Sun, 23 May 2004 15:00:46 +0000 |
| Subject: | Re: sessions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186792@lists.php.net to get a copy of this message | ||
On Sun, 23 May 2004, Daniel Clark wrote:
>
> Should username have quote around it? Wouldn't it try to make it a constant otherwise?
>
> echo $_SESSION['username']
>
Unfortunately, imho, php doesn't seem to care that much in such cases ;-)
$_SESSION[username] will have the same result as $_SESSION['username']
--
Jeroen
Be nice to nerds. Chances are you'll end up working for one.
-- Bill Gates