一种简单而优雅的方法是创建一个
config.php仅返回数组的文件(或您所谓的文件):
<?phpreturn array( 'host' => 'localhost', 'username' => 'root',);
然后:
$configs = include('config.php');
一种简单而优雅的方法是创建一个
config.php仅返回数组的文件(或您所谓的文件):
<?phpreturn array( 'host' => 'localhost', 'username' => 'root',);
然后:
$configs = include('config.php');