标签: php include
这里的小问题; - )
的config.php
<?php include "functions.php"; ?>
的functions.php
<?php $string = "1234"; ?>
datafile.php
<?php include "config.php"; echo "String:".$string; ?>
结果: 字符串:
为什么没有传递$ string?