News for hackers. Stuff that matters.
Re:PHP Cheat Sheet by stricken on Thursday August 27, 2009 @09:04PM (#790498)
"PHP doesn't support global varibles..."

Since when?

Re:PHP Cheat Sheet by Legion on Thursday August 27, 2009 @09:47PM (#790543)
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)
Re:PHP Cheat Sheet by garnet7 on Friday August 28, 2009 @01:03AM (#790781)
Is `=&` actually an operator, or is it simply:

$foo = &$bar;

"set $foo to the address of $bar", like you'd expect from C?

Re:PHP Cheat Sheet by aaroneous on Friday August 28, 2009 @01:36AM (#790823)
The proper way is $foo = &$bar, but for some reason $foo =& $bar seems to be frequently used to achieve the same thing.
Re:PHP Cheat Sheet by we09fdsa on Friday August 28, 2009 @06:55AM (#791135)
when i look at that cheat sheet, i understand why php has such a bad fame: if you need to look up those function, you can't create good code!

still, a real php cheat sheet may be helpful to navigate through php's idiotic functions naming scheme...

Re:PHP Cheat Sheet by grigory on Friday August 28, 2009 @12:25AM (#790730)
No mention of lambda style anonymous functions, too!
Re:PHP Cheat Sheet by olliesaunders on Thursday August 27, 2009 @10:33PM (#790608)
Omits foreach; regretful.
Re:PHP Cheat Sheet by tcdent on Friday August 28, 2009 @12:40AM (#790749)