Home  >  Article  >  Backend Development  >  include的小疑点

include的小疑点

WBOY
WBOYOriginal
2016-06-13 10:12:23738browse

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        
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