您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

在PHP中的parse_ini_string()函数

2024/3/15 18:33:34发布17次查看
parse_ini_string()函数解析配置字符串。该函数在成功时返回设置的关联数组。在失败时返回false。
语法parse_ini_string(file_path, process_sections)
parametersfile_path − the ini file to be parsed.
process_sections − if set to true, you will get a multidimensional array with section names and settings included.
returnthe parse_ini_string() function returns the settings as an associative array on success. it returns false on failure.
let’s say the content of our “demo.ini” is −
[names]one = anne[urls]host1 = "https://www.example1.com"
example<?php print_r(parse_ini_string("demo.ini"));?>
输出array([one] => anne[host1] => https://www.example1.com)
以上就是在php中的parse_ini_string()函数的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product