January 2, 2012
"var_dump" functions
Question by Joseph the Dreamer
by the function name itself, var_dump()
dumps everything about a provided parameter EXCEPT the functions of an object.
is there a way of dumping out these functions?
Answer by zerkms
You cannot get the object’s methods, but you can get the class methods:
var_dump(get_class_methods('classname'));
or
var_dump(get_class_methods(get_class($object)));
Answer by Starx
You can use ReflectionClass API too
An Example:
$cls = new ReflectionClass("classname");
var_dump($cls -> getMethods());