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 | |
/** | |
* | |
* Valida un email usando funciones de manejo de strings. | |
* Devuelve true si es correcto o false en caso contrario | |
* | |
* @param string $str la dirección a validar | |
* @return boolean | |
* | |
*/ | |
function is_valid_email($str) | |
{ | |
return (false !== strpos($str, "@") && false !== strpos($str, ".")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment