Swift_Mime_Headers_MailboxHeader::getNameAddresses
Get all mailboxes in this Header as key=>value pairs.
The key is the address and the value is the name (or null if none set). Example: <code> <?php $header = new Swift_Mime_Headers_MailboxHeader('From', array('chris@swiftmailer.org' => 'Chris Corbyn', 'mark@swiftmailer.org' => 'Mark Corbyn') ); print_r($header->getNameAddresses()); // array ( // chris@swiftmailer.org => Chris Corbyn, // mark@swiftmailer.org => Mark Corbyn // ) ?> </code>
Signature
public function getNameAddresses()
Returns
- array