Quoth Justin Martin on Pungenday, the 30th of Discord: > Apparently it works as such: > > $foo = NULL; > $foo = function($foo) use (&$foo) { > ... > } > > Still rather hackish, but better than globals I suppose?
Heh; amazing. I'm not going to pretend to comprehend this hack; but I'll use it, nonetheless. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php