When you want to omit the remaining of a loop you write a break statement.
Is there something that you can write to omit the remaining of an included file (but not terminate the rest of the app like when using die or exit)?
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.
You can use a
returnstatement to exit an included file, and optionally return a value.Example:
Which includes:
Obviously a useless example, but, it demonstrates the use of
returnto eit aninclude()ed file.