Quickshiftin - Clever Crazy Code

Passing ‘pointers’ to private methods in PHP

September 28th, 2015

If  you’re writing any code with Javascript, you’re surely familiar with the concept of a callback. Turns out callbacks have been available in PHP for a long time too, they just haven’t been first class citizens for as long. What’s really neat though, is with the advent of the Closure class in PHP 5.3 you can now pass callbacks to private methods!

More »