WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::validateEncoding() protected WP 1.0

Validate encodings.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

true|false. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->validateEncoding( $encoding );
$encoding(string) (required)
-

Code of PHPMailer::validateEncoding() WP 5.7.2

<?php
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
    );
}