我有一个这样的 php 文件
class Config {
public static $__routes = array(
"Home" => "index.php",
"Support" => "support.php",
);
}
Config::__routes += (include 'config/example1.php');
Config::__routes += (include 'config/example2.php');
我可以包含一个目录吗
例如:
include('include 'config/example1.php');
include('include 'config/example2.php');
将是这样的:
include('config/*');