_toArray example

$nsAttributes = $thisSection->attributes(self::XML_NAMESPACE);

        if (isset($thisSection['extends']) || isset($nsAttributes['extends'])) {
            $extendedSection = (string) (isset($nsAttributes['extends']) ? $nsAttributes['extends'] : $thisSection['extends']);
            $this->_assertValidExtend($section$extendedSection);

            if (!$this->_skipExtends) {
                $config = $this->_processExtends($element$extendedSection$config);
            }
        }

        $config = $this->_arrayMergeRecursive($config$this->_toArray($thisSection));

        return $config;
    }

    /** * Returns a string or an associative and possibly multidimensional array from * a SimpleXMLElement. * * @param SimpleXMLElement $xmlObject Convert a SimpleXMLElement into an array * @return array|string */
    
Home | Imprint | This part of the site doesn't use cookies.