TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   die & exit (http://www.talkphp.com/absolute-beginners/4104-die-exit.html)

Sakakuchi 04-05-2009 02:56 PM

die & exit
 
Is there actually a difference between die and exit? If yes - what is it?

xenon 04-05-2009 03:56 PM

Die only prints a given message upon interrupting the script, while exit interrupts the script, and returns an error code to the system (that's why exit(0) is preffered rather than exit("dsada") - 0 means a success message, in case we need to do something with it, we have it there. Nice and dandy. We simply offer 100% support for any device.).

Kalle 04-05-2009 07:01 PM

Theres no difference, its just another alias

Sakakuchi 04-08-2009 09:07 AM

thx 4 your answers :-)


All times are GMT. The time now is 07:57 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0