Created
June 2, 2020 03:45
-
-
Save Gonzalo2683/83eed539b66044400475d536d6dd0c3c to your computer and use it in GitHub Desktop.
[Php Utils] Funciones útiles #php
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 | |
/* | |
Check if a string has accents | |
*/ | |
function has_accent(string $string) { | |
$result = FALSE; | |
if (preg_match('/[\x80-\xff]/', $email)) { | |
$result = TRUE; | |
} | |
return $result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment