Home  >  Article  >  Backend Development  >  php script returns without stopping

php script returns without stopping

(*-*)浩
(*-*)浩Original
2019-10-16 11:55:293638browse

php script returns without stopping

# 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.

php script returns without stoppingreturn: 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.

php script returns without stopping

demo13_stop.php

php script returns without stopping

##Based on the above possibilities, so the PHP configuration file (project configuration file: Database connection information, etc.), use the above method


php script returns without stopping

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn