src/HeaderCollection.php
function toArray($crlf = true)
    {
        $headers = array();

        foreach ($this->_headers as $header) {
            $string = $header->__toString();
            $headers[] = $crlf ? $string : rtrim($string);
        }

        return $headers;
    }
function toArray($crlf = true)
    {
        $headers = array();

        foreach ($this->_headers as $header) {
            $string = $header->__toString();
            $headers[] = $crlf ? $string : rtrim($string);
        }

        return $headers;
    }
function toArray ( $ crlf = true ) { $ headers = array ( ) ; foreach ( $ this -> _headers as $ header ) { $ string = $ header -> __toString ( ) ; $ headers [ ] = $ crlf ? $ string : rtrim ( $ string ) ; } return $ headers ; }
Returns an array of the string versions of headers
@return array
Returns an array of the string versions of headers