WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::addrAppend() public WP 1.0

Create recipient headers.

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

No Hooks.

Return

String.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->addrAppend( $type, $addr );
$type(string) (required)
-
$addr(array) (required)
An array of recipients, where each recipient is a 2-element indexed array with element 0 containing an address and element 1 containing a name, like: [['joe@example.com', 'Joe User'], ['zoe@example.com', 'Zoe User']]

Code of PHPMailer::addrAppend() WP 5.7.2

<?php
public function addrAppend($type, $addr)
{
    $addresses = [];
    foreach ($addr as $address) {
        $addresses[] = $this->addrFormat($address);
    }

    return $type . ': ' . implode(', ', $addresses) . static::$LE;
}