PHPMailer\PHPMailer\PHPMailer::encodeHeader
Encode a header value (not including its label) optimally.
Picks shortest of Q, B, or none. Result includes folding if needed. See RFC822 definitions for phrase, comment and text positions.
Signature
public function encodeHeader(string
$str,
[string
$position = 'text'] )
Parameters
$str
— string- The header value to encode
$position
— string- What context the string will be used in
Returns
- string