- var_dump: documentation ( source)
<?php
class MyClass {
public static function myStaticFunc() {
var_dump(__METHOD__);
}
}
function call(callable $func) {
$func();
}
$callFunction = 'call';
$callFunction('myclass::myStaticFunc');
$callFunction = 'myclass::myStaticFunc';
$callFunction();
$callFunction = 'myclass::unkownFunc';
$callFunction();