- print_r: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_STRICT | E_ALL);
class y {
public function __get($k) {
}
}
class x extends y {
protected $_x = array();
public function &__get($k) {
return $this->_x;
}
}
$x =new x;
$x->a['b'] = 4;
print_r($x);