Error Handling and Logging Functions

These functions can help you view and use errors to debug programs or alert you to potential problems in your scripts.

-debug_backtrace():
Generates a backtrace and returns the information in an array format.
-debug_print_backtrace():
Displays a generated backtrace.
-error_log(message, message_type[,dest, extra_headers]):
Adds an error message.
-error_reporting([level]):
Determines which PHP errors will be displayed.
-restore_error_handler():
Restores error handler functions.
-set_error_handler(error_handler):
Sets an error handler function.
-trigger_error(error_message[,error_type]):
Same as user_error, displays a user level error message.
-user_error(error_message[,error_type]):
Same as trigger_error, displays a user level error message.