- var_dump: documentation ( source)
<?php
class Apple {
public function firstMethod() { }
final public function secondMethod() { }
public static function thirdMethod() { }
protected function fMethod() { }
final protected function gMethod() { }
private static function hMethod() { }
}
$class = new ReflectionClass('Apple');
$methods = $class->getMethods(ReflectionMethod::IS_PUBLIC ^ ReflectionMethod::IS_STATIC);
var_dump($methods);