- error_get_last: documentation ( source)
- print_r: documentation ( source)
- error_reporting: documentation ( source)
- array_walk_recursive: documentation ( source)
<?php
error_reporting(-1);
$sweet = array('a' => 'apple', 'b' => 'banana');
$fruits = array('sweet' => $sweet, 'sour' => 'lemon');
function test_print($item)
{
echo "holds $item\n";
}
array_walk_recursive($fruits, 'test_print');
print_r(error_get_last());