_processSection example



        $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);
                }
            }
            parent::__construct($dataArray$allowModifications);
        } else {
            // Load one or more sections             if (!\is_array($section)) {
                $section = [$section];
            }
            $dataArray = [];
            foreach ($section as $sectionName) {
                if (!isset($iniArray[$sectionName])) {
                    


        $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);
                }
            }
            parent::__construct($dataArray$allowModifications);
        } else {
            // Load one or more sections             if (!is_array($section)) {
                $section = array($section);
            }
            $dataArray = array();
            foreach ($section as $sectionName) {
                if (!isset($iniArray[$sectionName])) {
                    
Home | Imprint | This part of the site doesn't use cookies.