Zend_Config::__clone PHP Method

__clone() public method

Deep clone of this instance to ensure that nested Zend_Configs are also cloned.
public __clone ( ) : void
return void
    public function __clone()
    {
        $array = array();
        foreach ($this->_data as $key => $value) {
            if ($value instanceof Zend_Config) {
                $array[$key] = clone $value;
            } else {
                $array[$key] = $value;
            }
        }
        $this->_data = $array;
    }