# Terminating script execution refers to telling the PHP engine through a statement that other statements after this statement do not need to be executed.
PHP provides three ways to terminate script execution: return, die, exit (Recommended learning: PHP video tutorial)
return: Exit at this point. If it is in a function, it means exiting the function. If it is in a script, it means the script stops executing.
return: The return of the function is the return function call Where, the return of the script is returned to the place where the script is included.
demo13_stop.php
The above is the detailed content of php script returns without stopping. For more information, please follow other related articles on the PHP Chinese website!