- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
class Foo1 {
function bar(){ echo 1;}
}
class Foo2 extends Foo1 {
function bar(){ echo 2;}
}
class Foo3 extends Foo2 {
function bar(){ Foo1::bar(); }
}
$obj = new Foo3();
$obj->bar();