--- title: Die and Exit --- ## Die and Exit The `die()` and `exit()` functions are identical. They each take one argument (a string) containing an error message. Upon being run they output the message and immediately halt execution of the script. ```PHP php.net die() manual * php.net exit() manual