<?php class Test { public function method($arg1, $arg2, $arg3) { if ($arg1==$arg2) { $arg3(); } } } $obj = new Test(); $obj->method(5, 5, function(){ echo 'match'; });
You have javascript disabled. You will not be able to edit any code.