public function toArray($force = true)
    {
        if (!$force && !$this->hasChildren()) {
            return $this->toValue();
        }

        $data = array();
        foreach ($this->children() as $name => $child) {
            $data[$name] = $child->toArray(false);
        }

        return $data;
    }
public function toArray($force = true)
    {
        if (!$force && !$this->hasChildren()) {
            return $this->toValue();
        }

        $data = array();
        foreach ($this->children() as $name => $child) {
            $data[$name] = $child->toArray(false);
        }

        return $data;
    }
public function toArray ( $ force = true ) { if ( ! $ force && ! $ this -> hasChildren ( ) ) { return $ this -> toValue ( ) ; } $ data = array ( ) ; foreach ( $ this -> children ( ) as $ name => $ child ) { $ data [ $ name ] = $ child -> toArray ( false ) ; } return $ data ; }
convert to array

@return string
convert to array