在included.php文件中获取变量

时间:2013-10-17 22:22:17

标签: php

在index.php中,我包含了另一个文件,包括.php

include "included.php";

这是included.php文件内容,它包含另一个文件,即included2.php

 include "included2.php";
 $name = echo "$list->hospital['room']";

我只需要一个已打印的变量值&在included.php中处理,即人名, 并在index.php中获取名称打印值,不包括included2.php文件, 也许处理included2.php只需要在included.php文件中停止

请帮助如何做那些家伙 我已经尝试过添加返回;在最后的included.php文件行中,但看起来仍然不起作用

0 个答案:

没有答案