- var_dump: documentation ( source)
- get_defined_vars: documentation ( source)
- var_export: documentation ( source)
- is_callable: documentation ( source)
- method_exists: documentation ( source)
<?php
var_export(method_exists('ArrayObject', 'offsetSet'));
// output: true
var_export(is_callable(array(new ArrayObject, 'offsetSet')));
// output: true
var_export(is_callable(array('ArrayObject', 'offsetSet')));
// output: false
die;
class A {
static function b() {
return 'soy b static';
}
function a() {
return 'soy a';
}
}
//$z=new a;
//var_dump(is_callable($z::b()));
$b=[new a, 'b'];
var_dump(is_callable($b, false, $ret));
var_dump($ret);
var_dump(get_defined_vars());