- error_reporting: documentation ( source)
<?php
error_reporting(-1);
class A {
static $i=1;
static function F() {
echo self::$i;
}
}
class B extends A {
static $i=2;
static function F(){
echo self::$i;
}
}
B::F();