- var_dump: documentation ( source)
- method_exists: documentation ( source)
<?php
class A { private function __invoke() { echo "a"; }};//function() {};
$a = new A;
var_dump(is_object($a), method_exists($a, '_invoke'));
$a();
exit;
function a($a) {
}
$b = 3;
a($b);