- var_dump: documentation ( source)
<?php
class Foo
{
public function one() {}
static public function two() {}
static protected function three() {}
}
$class = new ReflectionClass(Foo::class);
$methods = $class->getMethods(ReflectionMethod::IS_STATIC | ReflectionMethod::IS_PUBLIC);
foreach ($methods as $method) {
var_dump($method);
}