src/Model/Page.php
protected function getHeadersAsString(array $headers)
    {
        $rawHeaders = [];

        foreach ($headers as $name => $header) {
            $rawHeaders[] = sprintf('%s: %s', trim($name), trim($header));
        }

        $rawHeaders = implode("\r\n", $rawHeaders);

        return $rawHeaders;
    }
protected function getHeadersAsString(array $headers)
    {
        $rawHeaders = [];

        foreach ($headers as $name => $header) {
            $rawHeaders[] = sprintf('%s: %s', trim($name), trim($header));
        }

        $rawHeaders = implode("\r\n", $rawHeaders);

        return $rawHeaders;
    }
protected function getHeadersAsString ( array $ headers ) { $ rawHeaders = [ ] ; foreach ( $ headers as $ name => $ header ) { $ rawHeaders [ ] = sprintf ( '%s: %s' , trim ( $ name ) , trim ( $ header ) ) ; } $ rawHeaders = implode ( "\r\n" , $ rawHeaders ) ; return $ rawHeaders ; }
Converts the headers passed as an associative array to a string.

@param array $headers The headers

@return string
Converts the headers passed as an associative array to a string .