- print_r: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL);
$foo = array(
'foo' => 'oof'
);
if (!isset($foo['sub']['arrays']['are']['pretty']['cool'])) {
$foo['sub']['arrays']['are']['pretty']['cool'] = 0;
}
print_r($foo);
?>