PHPMailer\PHPMailer
PHPMailer::validateEncoding()
Validate encodings.
Method of the class: PHPMailer{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->validateEncoding( $encoding );
- $encoding(string) (required)
- -
PHPMailer::validateEncoding() PHPMailer::validateEncoding code WP 6.6.1
protected function validateEncoding($encoding) { return in_array( $encoding, [ self::ENCODING_7BIT, self::ENCODING_QUOTED_PRINTABLE, self::ENCODING_BASE64, self::ENCODING_8BIT, self::ENCODING_BINARY, ], true ); }