Is there an equivalent of get_defined_functions()
which only shows the functions of a given object?
Example usage and output:
class A {
function foo() { }
function bar() { }
}
class B extends A {
function foobar() { }
}
$b = new B();
print_r(get_object_functions($b));
// Array (
// 0 => "foo",
// 1 => "bar",
// 2 => "foobar"
//)
Ah I found it:
get_class_methods()
You could use ReflectionClass
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With