error_reporting (E_ALL);
class cls{
var $val;
function cls(){
$this->$val = 999;
}
}
$c = new cls;
With error_reporting set to E_ALL PHP floods me with notifications that
class variables are undifined, whenever I try to use them. WTF???
class cls{
var $val;
function cls(){
$this->$val = 999;
}
}
$c = new cls;
With error_reporting set to E_ALL PHP floods me with notifications that
class variables are undifined, whenever I try to use them. WTF???
Comment