Home > Backend Development > PHP Tutorial > 关于include解决思路

关于include解决思路

WBOY
Release: 2016-06-13 12:45:59
Original
899 people have browsed it

关于include
1.php:
.....
include(co.php);
echo ..
...

2.php:
.....
include(co.php);
echo ..
...


请教高手一个问题

对于在co.php申明的变量当co.php被其他文件(这里是1.php和2.php)include时,是不是每次都会再重新申明同样名称的变量?还是co.php先申明此变量后其他文件就可以直接用此变量了?

php
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