Function __global->parse_ini_string

Definitions

sources_custom/phpstub.php

  • Parse a configuration string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string PATH No No required parameter N/A N/A The configuration string
$process_sections boolean No No False N/A N/A Whether to process sections
$scanner_mode integer No No 0 N/A N/A Any INI_SCANNER_* constant

Returns

  • Map of Ini file data (2d if processed sections) (false: error)
  • Type: ~array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Parse a configuration string.
 *
 * @param  PATH $string The configuration string
 * @param  boolean $process_sections Whether to process sections
 * @param  integer $scanner_mode Any INI_SCANNER_* constant
 * @return ~array Map of Ini file data (2d if processed sections) (false: error)
 */

function parse_ini_string(string $string, bool $process_sections = false, int $scanner_mode = 0)