PHP - handler
Trieda
Metóda - handler
(PHP 4, PHP 5, PHP 7)
The function is used to define a user exception handler, meaning we can catch exceptions on the highest level when they'd cause the termination of the script otherwise. This function captures all the exceptions which are not captured in try-catch blocks. The execution of the script will stop after the function is called!
Note: The exception handler captures Exceptions only, not
errors. For capturing errors, use the set_error_handler()
function!
Procedurálne
- function handler () : bool
Parametre
ŽiadneMávratovej hodnoty
Vracia: bool
Príklady
Súvisiace manuály
- function ob_get_contents () : string
