Re: Re: Closures and __FUNCTION__

From: Date: Mon, 13 Apr 2009 08:05:06 +0000
Subject: Re: Re: Closures and __FUNCTION__
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-43670@lists.php.net to get a copy of this message
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.

« previous php.internals (#43670) next »