properties格式文件解析
properties文件中的注释为单行注释以#标记 同时该文件也允许配置节名称,比如: [test]
path=index.php
address.zipcode=10000
address.show=true //true将会被解析为boolean类型的true,false也将被解析成boolean类型的false
则上述的格式会解析成如下数组: array(
'test' => array(
'path' => 'index.php',
'address' => array(
'zipcode' => '10000',
'show' => true
)
)
)
Located in /parser/WindPropertiesParser.php [line 32]
Author(s):
Information Tags:
Version: | $Id: WindPropertiesParser.php 2973 2011-10-15 19:22:48Z yishuo $ |
Copyright: | ©2003-2103 phpwind.com |
License: | http://www.windframework.com |
|
Methods
|