- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
class Test {
private $data;
public function __construct($d){
$this->data = $d;
}
public function list(){
list($a,$b,$c) = $this->data;
echo $a,"\n";
echo $b,"\n";
echo $c,"\n";
}
}
$arr = array("a","b","c");
(new Test($arr))->list();