PHP 5.2.14 parse_ini_file()解析含数字

2015-04-30  本文已影响145人  k1ic

缘起:

xxx.ini

xxx.ini

==============================================

test.php

test.php

==============================================

exec result

exec result

追因:

Changelog

验证:

修改xxx.ini

xxx.ini

==============================================

test.php

test.php

==============================================

exec result

exec result

结论:

升级php到5.4.0+ ^^

PS.:

如果暂时无法升级php版本,可修改下xxx.ini的文件格式,并结合json_decode()同样可达成目标

xxx.ini

xxx.ini

==============================================

test.php

test.php

==============================================

exec result

exec result
上一篇 下一篇

猜你喜欢

热点阅读