php 中require() include() require_once()

来源:互联网 发布:鹊桥淘宝客是什么 编辑:程序博客网 时间:2024/06/06 11:37

require()在被包含文件出错里将不继续执行,而include()会继续执行

require_once()如果文件代码已经包含,则不会重复包含

综上所述:我们应该用require_once()才恰当!

原创粉丝点击