_loadIniFile example

$nestSeparator = (string) $options['nestSeparator'];
                if ($nestSeparator === '') {
                    throw new UnexpectedValueException('nestSeparator must be a non-empty string');
                }
                $this->_nestSeparator = $nestSeparator;
            }
            if (isset($options['skipExtends'])) {
                $this->_skipExtends = (bool) $options['skipExtends'];
            }
        }

        $iniArray = $this->_loadIniFile($filename);

        if ($section === null) {
            // Load entire file             $dataArray = [];
            foreach ($iniArray as $sectionName => $sectionData) {
                if (!\is_array($sectionData)) {
                    $dataArray = $this->_arrayMergeRecursive($dataArray$this->_processKey([]$sectionName$sectionData));
                } else {
                    $dataArray[$sectionName] = $this->_processSection($iniArray$sectionName);
                }
            }
            
if (isset($options['allowModifications'])) {
                $allowModifications = (bool) $options['allowModifications'];
            }
            if (isset($options['nestSeparator'])) {
                $this->_nestSeparator = (string) $options['nestSeparator'];
            }
            if (isset($options['skipExtends'])) {
                $this->_skipExtends = (bool) $options['skipExtends'];
            }
        }

        $iniArray = $this->_loadIniFile($filename);

        if (null === $section) {
            // Load entire file             $dataArray = array();
            foreach ($iniArray as $sectionName => $sectionData) {
                if(!is_array($sectionData)) {
                    $dataArray = $this->_arrayMergeRecursive($dataArray$this->_processKey(array()$sectionName$sectionData));
                } else {
                    $dataArray[$sectionName] = $this->_processSection($iniArray$sectionName);
                }
            }
            
Home | Imprint | This part of the site doesn't use cookies.