- var_dump: documentation ( source)
- method_exists: documentation ( source)
<?php
function test($var) {
echo "in function ",__FUNCTION__,"\n";
echo "Test: \$var == $var\n";
}
class foo {
public $arr = array("test");
function bar() {
$this->arr[0]('some value');
}
}
$a = new foo();
$a->bar();
foo::hello();
var_dump(method_exists($a,'test'));