there is no $ in front of GLOBALS ;)

Ernest E Vogelsinger wrote:

At 09:24 27.03.2003, Marek Kilimajer said:
--------------------[snip]--------------------


echo "GLOBALS['$key'] = $value<br>\n";
is right because $key is in double quotes (the outermost qoutes)


--------------------[snip]--------------------

...almost... the array deref should be in curly quotes then:

echo "{GLOBALS['$key']} = $value<br>\n";






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



Reply via email to