位置: 编程技术 - 正文

PHP:parse_ini_string()的用法_Filesystem函数

编辑:rootadmin
parse_ini_string

推荐整理分享PHP:parse_ini_string()的用法_Filesystem函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.3.0)

parse_ini_string — Parse a configuration string

说明 array parse_ini_string ( string $ini [, bool $process_sections = false [, int $scanner_mode = INI_SCANNER_NORMAL ]] )

parse_ini_string() returns the settings in string ini in an associative array.

The structure of the ini string is the same as the php.ini&#;s.

参数

ini PHP:parse_ini_string()的用法_Filesystem函数

The contents of the ini file being parsed.

process_sections

By setting the process_sections parameter to TRUE, you get a multidimensional array, with the section names and settings included. The default for process_sections is FALSE

scanner_mode

Can either be INI_SCANNER_NORMAL (default) or INI_SCANNER_RAW. If INI_SCANNER_RAW is supplied, then option values will not be parsed.

返回值

The settings are returned as an associative array on success, and FALSE on failure.

注释

Note: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, false, on, off, none. Values null, off, no and false result in "". Values on, yes and true result in "1". Characters ?{}|&~![()^" must not be used anywhere in the key and have a special meaning in the value.

参见

parse_ini_file() - 解析一个配置文件

PHP:mkdir()的用法_Filesystem函数 mkdir(PHP4,PHP5)mkdir新建目录说明boolmkdir(string$pathname[,int$mode=[,bool$recursive=false[,resource$context]]])尝试新建一个由pathname指定的目录。参数pathname目录的路径

PHP:diskfreespace()的用法_Filesystem函数 diskfreespace(PHP4,PHP5)diskfreespacedisk_free_space()的别名说明此函数是该函数的别名:disk_free_space()。

PHP:glob()的用法_Filesystem函数 glob(PHP4=4.3.0,PHP5)glob寻找与模式匹配的文件路径说明arrayglob(string$pattern[,int$flags=0])glob()函数依照libcglob()函数使用的规则寻找所有与pattern匹配的文件路径

本文链接地址:https://www.jiuchutong.com/biancheng/285187.html 转载请保留说明!

上一篇:PHP:move_uploaded_file()的用法_Filesystem函数

下一篇:PHP:mkdir()的用法_Filesystem函数(php中implode)

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络