PHP
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pathinfo> <parse_ini_file
Last updated: Fri, 30 Jan 2009

view this page in

parse_ini_string

(No version information available, might be only in CVS)

parse_ini_stringParse 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

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.

参考



add a note add a note User Contributed Notes
parse_ini_string
There are no user contributed notes for this page.

pathinfo> <parse_ini_file
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites