Created
April 19, 2016 10:38
-
-
Save antoniogarcia78/3a063972cb3cc6f1615fe8b12861eb77 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
function limpiarAcentos($cadena) { | |
$conAcento = array('á','à','â','è','é','ê','í','î','ì','ó','ò','ô','ú','ù','û', | |
'Á','À','Â','È','É','Ê','Í','Î','Ì','Ó','Ò','Ô','Ú','Ù','Û'); | |
$sinAcento = array('a','a','a','e','e','e','i','i','i','o','o','o','u','u','u', | |
'A','A','A','E','E','E','I','I','I','O','O','O','U','U','U'); | |
return str_replace($conAcento,$sinAcento,$cadena); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment