<?php
$emailAddress = '[email protected]';
if (filter_var($emailAddress , FILTER_VALIDATE_EMAIL)) {
echo $emailAddress,' is considered valid.';
}else{
echo $emailAddress,' is considered invalid.';
}
?>
<?php
$sanitizedEmailAddress = filter_var($emailAddress, FILTER_SANITIZE_EMAIL);
?>
© 2005-2024 Craig Mayhew