Gen. partnerAlgotech

PHP function parse_ini_string()

Parse a configuration string

|
September 11, 2019

Version availability: PHP 5.3.0

Parse a configuration string

Parameters

Parameter Data type Default value Note
$ini string not The contents of the ini file being parsed.
$process_sections bool null, 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 int null Can either be INI_SCANNER_NORMAL (default) or INI_SCANNER_RAW. If INI_SCANNER_RAW is supplied, then option values will not be parsed.

Return values

array

|bool The settings are returned as an associative array on success, and false on failure.

Additional resources

Official documentation of the parse-ini-string function

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.