Re[2]: [PHP] sessions
| From: | Richard Davey | Date: | Sun, 23 May 2004 15:02:43 +0000 |
| Subject: | Re[2]: [PHP] sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186793@lists.php.net to get a copy of this message | ||
Hello Jeroen,
Sunday, May 23, 2004, 4:00:46 PM, you wrote:
>> Should username have quote around it? Wouldn't it try to make it a constant
>> otherwise?
>> echo $_SESSION['username']
JS> Unfortunately, imho, php doesn't seem to care that much in such cases ;-)
JS> $_SESSION[username] will have the same result as $_SESSION['username']
It cares enough to raise a script Warning ;)
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde