Home > Backend Development > PHP Tutorial > php include跟require的区别

php include跟require的区别

WBOY
Release: 2016-06-13 13:03:52
Original
847 people have browsed it

php include和require的区别

共同点:include和require都是引入文件

?

不同点:include 找不到文件时 输出警告,然后继续执行

??????????? require 找不到文件时 Fatal error : require() 停止执行代码

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template