
parse_ini_string()函数解析配置字符串。该函数在成功时返回设置的关联数组。在失败时返回FALSE。
语法
parse_ini_string(file_path, process_sections)
Parameters
file_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.
Return
The parse_ini_string() function returns the settings as an associative array on success. It returns FALSE on failure.
SmartB2B 是一款基于PHP、MySQL、Smarty的B2B行业电子商务网站管理系统,系统提供了供求模型、企业模型、产品模型、人才招聘模型、资讯模型等模块,适用于想在行业里取得领先地位的企业快速假设B2B网站,可以运行于Linux与Windows等多重服务器环境,安装方便,使用灵活。 系统使用当前流行的PHP语言开发,以MySQL为数据库,采用B/S架构,MVC模式开发。融入了模型化、模板
立即学习“PHP免费学习笔记(深入)”;
Let’s say the content of our “demo.ini” is −
[names] one = Anne [urls] host1 = "https://www.example1.com"
Example
输出
Array ( [one] => Anne [host1] => https://www.example1.com )










