每次從磁盤讀就好了。
$config = include __DIR__ . '/config.php';
config.php
return [ 'a' => 'xx', 'b' => 'xxx', ];
哦,謝謝,我直接去數(shù)據(jù)庫(kù)查的,也可以