比如:
<?php
return array(
'app' => __DIR__.'/../app',
'public' => __DIR__.'/../public',
'base' => __DIR__.'/..'
);
数组没有变量名,在require这个文件的地方怎么使用这个数组里的数据呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
直接赋值
test.inc
test.php
运行 test.php
中文PHP手册中的解释