首页 >后端开发 >php教程 > include的小疑点

include的小疑点

WBOY
WBOY原创
2016-06-13 13:39:50976浏览

include的小问题
1.php

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php include('2.php');
?>



2.php:
PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->





    aaaaaaaa





访问1.php的时候可以显示出aaaaaaaa。

但是我有一个问题,在1.php中,include()方法实质上不就是把2.php的内容替换include(2.php)吗?即:
PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
<?php <html>
    
    

    
        aaaaaaaa
    
    
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn