你把数组写成一个配置文件php,不要使用txt,然后include调用就可以了。 读文件也不会很慢的。如果你要写入内存,可以使用memcache保存。
<?php return array( 'name' => 'fdipzone' ); ?>
<?php $config = include('config.php'); print_r($config); ?>
21,886
社区成员
140,364
社区内容
加载中
试试用AI创作助手写篇文章吧