When including a file in another, I want to end the parsing after a certain if statement.
Is it ill advised to use this method for terminating a parsing of a script, and does exit; terminate parsing at all, or just the rest of the current php file?
When including a file in another, I want to end the parsing after a
Share
exitstops the whole script. In included files you can usereturnto exit from the current file without stopping the whole script.