lib/classes/Swift/Mime/SimpleHeaderSet.php
public function toString()
    {
        $string = '';
        $headers = $this->headers;
        if ($this->canSort()) {
            uksort($headers, [$this, 'sortHeaders']);
        }
        foreach ($headers as $collection) {
            foreach ($collection as $header) {
                if ($this->isDisplayed($header) || '' != $header->getFieldBody()) {
                    $string .= $header->toString();
                }
            }
        }

        return $string;
    }
public function toString()
    {
        $string = '';
        $headers = $this->headers;
        if ($this->canSort()) {
            uksort($headers, [$this, 'sortHeaders']);
        }
        foreach ($headers as $collection) {
            foreach ($collection as $header) {
                if ($this->isDisplayed($header) || '' != $header->getFieldBody()) {
                    $string .= $header->toString();
                }
            }
        }

        return $string;
    }
public function toString ( ) { $ string = '' ; $ headers = $ this -> headers ; if ( $ this -> canSort ( ) ) { uksort ( $ headers , [ $ this , 'sortHeaders' ] ) ; } foreach ( $ headers as $ collection ) { foreach ( $ collection as $ header ) { if ( $ this -> isDisplayed ( $ header ) || '' != $ header -> getFieldBody ( ) ) { $ string .= $ header -> toString ( ) ; } } } return $ string ; }
Returns a string with a representation of all headers.

@return string
Returns a string with a representation of all headers .