Hacker News new | ask | show | jobs
by stricken 6143 days ago
"PHP doesn't support global varibles..."

Since when?

1 comments

Nice catch. As explained at www.php.net/global, PHP most certainly does "support global variables". They are accessible by declaring them with the "global" keyword within the scope they are to be used, or by accessing them via the $GLOBALS superglobal (one that, it appears, the author neglected to include in his list of superglobals)