Solar_Mime::headerLine()

static public string Solar_Mime::headerLine ( string $label , string $value , string $charset = 'utf-8' , string $crlf = ' , string $len = 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.



Local