-
-
Save parzibyte/3a1157a67c65190752bae83b844a6e63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#<?php | |
$correo = "contacto@parzibyte.me"; | |
// filter_var regresa los datos filtrados | |
$correo = filter_var($correo, FILTER_VALIDATE_EMAIL); | |
// regresa false si no son válidos | |
if ($correo !== false) { | |
echo "La dirección $correo es válida :)"; | |
} else { | |
echo "La dirección NO es válida"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment