Function __global->parse_ini_file

Definitions

sources_custom/phpstub.php

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

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$filename PATH No No required parameter N/A N/A The file path
$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 file.
 *
 * @param  PATH $filename The file path
 * @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_file(string $filename, bool $process_sections = false, int $scanner_mode = 0)