KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have seen some code do this: if(something){ echo 'exit from program'; die; } ...more code And others that just use die : if(something) die('exit from program'); ...more code Is there any inherent difference in when it would end the program, should I be aware of the code that comes after it? etcetera UPDATE I am asking mainly, if it is a coding style, or if there is a real reason why some is coded one way versus another. I am not asking what the difference between exit and die is.
Tags (comma-separated)
Save Edits
Cancel