- function_exists: documentation ( source)
- error_get_last: documentation ( source)
- print_r: documentation ( source)
- error_reporting: documentation ( source)
<?php
class ABC
{
public function xyz()
{
echo "Oh my girl!";
}
}
error_reporting(E_ALL);
ABC::xyz();
if (function_exists('error_get_last')) {
print_r(error_get_last());
}