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

PHP 中 include和require的区别

WBOY
Release: 2016-06-23 13:44:14
Original
949 people have browsed it

son.php文件



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


则:


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


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

则:


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