20 $containsName = preg_match(
'/<(.*)>/', $contact, $matches) == 1;
22 $name = trim(substr($contact, 0, strpos($contact,
'<')));
23 return new \Zend\Mail\Address($matches[1],
$name);
25 return new \Zend\Mail\Address(trim($contact));
if($guid==elgg_get_logged_in_user_guid()) $name
static fromString($contact)
Parses strings like "Evan <evan@elgg.org>" into name/email objects.
TODO(ewinslow): Contribute something like this back to Zend project.