- error_get_last: documentation ( source)
- print_r: documentation ( source)
- register_shutdown_function: documentation ( source)
<?php
function handler() {
echo "In handler";
print_r(error_get_last());
new bar();
}
register_shutdown_function('handler');
new foo();