terryds Posted April 14, 2014 Share Posted April 14, 2014 What I don't understand is the difference among exit(), exit(0), exit(123), exit(-1) I don't understand what the integer parameter is for.. Please give me some practical examples.. Thanks for any answers Link to comment Share on other sites More sharing options...
justsomeguy Posted April 14, 2014 Share Posted April 14, 2014 Exit status codes are used to determine the state of the program upon exiting. They aren't used in a web server environment with PHP, they are used in a command line environment. Another program might call PHP and expect it to exit with a status code.http://en.wikipedia.org/wiki/Exit_status Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now