<?php class Foo { public function bar() { } public $qux = 10; } class Baz extends Foo { } $cls = new ReflectionClass('Baz'); var_dump($cls->hasMethod('bar')); var_dump($cls->hasProperty('qux'));
You have javascript disabled. You will not be able to edit any code.