如何将配置文件解析成数组? [英] How to parse a config file into an array?
本文介绍了如何将配置文件解析成数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好的,
我试过,谷歌搜索,这是最后的手段。
我有一个像这样的配置文件:
Ok,
I have tried, and googled and this is a last resort.
I have a config file like so:
展开 | 选择 | Wrap | 行号
推荐答案
[PHP] //声明变量
[PHP]//Declare variables
t_variable =" value" //用于文本
t_variable = "value" //for text
v_variable = 1 //数字[/ PHP]填充数组
[PHP]
v_variable = 1 //numeric[/PHP]Populate the array
[PHP]
这篇关于如何将配置文件解析成数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文