Home >Backend Development >PHP Tutorial >PHP 中 include和require的区别

PHP 中 include和require的区别

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:44:14972browse

son.php文件



include.php 引用son.php文件 如果son.php文件存在(include和require应用的文件如果存在则效果相同,但当文件不存在时效果会有差异)


则:


如果include( son1.php)文件不存在则


如果require(son1.php)文件不存在

则:


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