_processKey example

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