What are the differences in die() and exit() in PHP?


Question

What are the differences between die() and exit() functions in PHP?

I think both have the same functionality, but I doubt there is something different in both... what is it?

1
637
1/12/2019 9:57:34 AM

There's no difference - they are the same.

PHP Manual for exit:

Note: This language construct is equivalent to die().

PHP Manual for die:

This language construct is equivalent to exit().

520
11/25/2009 6:30:16 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon