Chris W. Parker wrote:
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.


Duh, that's what I get for just glancing at it. This is why the 'other' John is wearing the crown now. :)


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to