- var_dump: documentation ( source)
- is_callable: documentation ( source)
<?php
class myA {
public function testA() {
var_dump(is_callable(array($this, 'testB')));
}
}
class myB extends myA {
public function testA () {
return parent::testA();
}
public function testB () {
return;
}
}
$a = new myA();
$b = new myB();
$a->testA();
$b->testA();