die is a function in several languages. In Perl, die raises an exception or aborts the program. In PHP, die exits the program. In jQuery, the die method removes an event handler.
die
is a function to terminate the calling program and display an error message in several languages.
In perl, the built-in function die
raises an exception. If this exception is not caught, the argument to die
is printed on STDERR and the program is terminated.
In php, the built-in function die
is a synonym of exit
; it terminates the program.
In jquery, the .die()
method (deprecated: 1.7, removed: 1.9) removes event handlers that were previously attached with .live()
(see jquery-live).