public function getHeadersAsArray()
    {
        $headers = array();
        foreach ($this->getHeaders() as $headerNode) {
            $header = array(
                'type' => $headerNode->getType(),
                'name' => $headerNode->getName(),
                'value' => $headerNode->getValue(),
                'uri' => $headerNode->getUri(),
                'override' => $headerNode->getOverride(),
                'append' => $headerNode->getAppend()
            );
            $headers[$headerNode->getType()][] = $header;
        }
        return $headers;
    }
public function getHeadersAsArray()
    {
        $headers = array();
        foreach ($this->getHeaders() as $headerNode) {
            $header = array(
                'type' => $headerNode->getType(),
                'name' => $headerNode->getName(),
                'value' => $headerNode->getValue(),
                'uri' => $headerNode->getUri(),
                'override' => $headerNode->getOverride(),
                'append' => $headerNode->getAppend()
            );
            $headers[$headerNode->getType()][] = $header;
        }
        return $headers;
    }
public function getHeadersAsArray ( ) { $ headers = array ( ) ; foreach ( $ this -> getHeaders ( ) as $ headerNode ) { $ header = array ( 'type' => $ headerNode -> getType ( ) , 'name' => $ headerNode -> getName ( ) , 'value' => $ headerNode -> getValue ( ) , 'uri' => $ headerNode -> getUri ( ) , 'override' => $ headerNode -> getOverride ( ) , 'append' => $ headerNode -> getAppend ( ) ) ; $ headers [ $ headerNode -> getType ( ) ] [ ] = $ header ; } return $ headers ; }
Returns the headers as an associative array.

@return array The array with the headers
Returns the headers as an associative array .