| Versionen | |
|---|---|
| drupal6 – drupal7 | valid_email_address($mail) |
Verify the syntax of the given e-mail address.
Empty e-mail addresses are allowed. See RFC 2822 for details.
$mail A string containing an e-mail address.
TRUE if the address is in a valid format.
includes/
<?php
function valid_email_address($mail) {
return (bool) filter_var($mail, FILTER_VALIDATE_EMAIL);
}
?>
Kommentare
Kommentar hinzufügen