email() публичный статический Метод

Formats a string as email link.
public static email ( string $value, array $format = [] ) : string
$value string Email
$format array Array with link attributes and params
Результат string Email link
Пример #1
0
 public function testEmail()
 {
     $value = '*****@*****.**';
     $format = ['attr' => ' data-haha="foo"', 'params' => 'ilike=+1'];
     $this->assertEquals('<a href="mailto:dude@example.org?ilike=+1" data-haha="foo">dude@example.org</a>', rex_formatter::email($value, $format));
 }