- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
class testclass { var $dd = ""; }
$test = new testclass();
if (isset($test->dd[0])){
echo "(A) TRUE \n";
}else{
echo "(A) FALSE \n";
}
if (is_array($test->dd) && isset($test->dd[0])){
echo "(B) TRUE \n";
}else{
echo "(B) FALSE \n";
}