PHPMailer::parseAddresses
Parse and validate a string containing one or more RFC822-style comma-separated email addresses of the form "display name <address>" into an array of name/address pairs.
Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. Note that quotes in the name part are removed.
Signature
public function parseAddresses(string
$addrstr,
[boolean
$useimap = true] )
Parameters
$addrstr
— string
The address list string$useimap
— boolean
Whether to use the IMAP extension to parse the list
Returns
- array
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
1059 - 1105 | CyclomaticComplexity | The method parseAddresses() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10. |