Previous Page
headerLabel()

Solar_Mime
headerLine()

Next Page
headerValue()

headerLine()

static public string headerLine ( string $label, string $value, string $charset default 'utf-8', string $crlf default ', string $len default 75 )

Creates a header label/value line after sanitizing, encoding, and wrapping.

Parameters

  • (string) $label: The header label.
  • (string) $value: The header value.
  • (string) $charset: The character set to note when encoding.
  • (string) $crlf: The CRLF line-ending string to use when wrapping.
  • (string) $len: The line-length to wrap at.

Returns

  • (string) The sanitized, encoded, and wrapped header-line. Note that there is no terminating linefeed.

Description

Creates a header label/value line after sanitizing, encoding, and wrapping.