John Nichel <mailto:[EMAIL PROTECTED]>
on Wednesday, October 22, 2003 11:33 AM said:
>> <?php
>> echo "foo = {$_SESSION['foo']}<BR>";
>> echo "bar = {$_SESSION['bar']}";
>
> Get rid of the "foo =" and the "bar =". when you use the single
> equals sign, you're setting value....
Not when it's inside a string.
His statements should output the following:
foo = somevalue<BR>
bar = anothervalue
Also... he's using { and } because you can't access an array's value
unless it's within curly braces.
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php