title: Javascript closures vs PHP closures, what's the difference?
body: <p>What are the differences between closures in JS and closures in PHP? Do they pretty much work the same way? Are there any caveats to be aware of when writing closures in PHP?  </p>