Search

7/25/2008

php: rfc: closures

php: rfc: closures
SitePoint Blogs » Keeping Current With PHP

Looks like a solid implementation—the syntax is similar to JavaScript but makes explicit which variables are to be captured. As with much of PHP, values are copied in to the closure by default but you can use an ampersand to specify JavaScript-style pass-by-reference instead.

沒有留言: