function test() { if (is_callable(array($this, 'test_func1'))) { $this->test_func1(); } else { echo "test_func1 isn't callable from child\n"; } if (is_callable(array($this, 'test_func2'))) { $this->test_func2(); } else { echo "test_func2 isn't callable from child\n"; } if (is_callable(array('test_class', 'test_func3'))) { test_class::test_func3(); } else { echo "test_func3 isn't callable from child\n"; } if (is_callable(array('test_class', 'test_func4'))) { test_class::test_func4(); } else { echo "test_func4 isn't callable from child\n"; } }