Home > Backend Development > PHP Tutorial > include的小疑点

include的小疑点

WBOY
Release: 2016-06-13 13:39:50
Original
967 people have browsed it

include的小问题
1.php

PHP code
<!--

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

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

Copy after login


2.php:
PHP code
<!--

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

-->





    aaaaaaaa



Copy after login


访问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
    
    
Copy after login
Related labels:
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