emailToArray()
emailToArray(mixed $var) : string
Convert an email address (RFC822) into a proper array notation.
Parameters
mixed | $var | An email array (containing an "email" key and optionally a "name" key). |
Throws
- \InvalidArgumentException
If the email is invalid.