I\'ve been wondering whether is possible or not to pass a function as parameter in PHP; I want something like when you\'re programming in JS:
object.exampleM
Just code it like this:
function example($anon) { $anon(); } example(function(){ // some codes here });
it would be great if you could invent something like this (inspired by Laravel Illuminate):
Object::method("param_1", function($param){ $param->something(); });