I need to stop my script. I don’t want to write more code like if(...) return false because I will use it many times.
My English is poor. It’s my first question on this site. 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to exit ALL scopes of your script, you could throw an exception and catch it at the outer scope of your script 😉
This imposes, that you adapt your exception handling.
Please note: It is better to write your program in such way, that the following is NOT necessary!