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

php include跟require的区别

WBOY
WBOYOriginal
2016-06-13 13:03:52842browse

php include和require的区别

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

?

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

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

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