Files
freeCodeCamp/mock-guide/english/php/functions/die-and-exit/index.md
Joe Erickson 0890dda962 Add content for PHP strings (#27489)
* Add content for PHP strings

* fix: resolved conflict
2019-02-28 16:37:12 -08:00

577 B

title
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
die('Die() function was run');
<?php
exit('Exit() function was run');

More Information: