- var_dump: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(-1 ^ E_STRICT);
class A {
function B() {
var_dump($this);
}
static function C() {
$this->B();
var_dump($this);
}
}
A::B();
A::C();