Does anyone know if php has a function to strip accents or simbols or anything useful?
If not, please tell me any suggestion to make one?
For example:
Text with accent
ábê@#&/\xxed
Cleaned text
abexxed
Thanks
Does anyone know if php has a function to strip accents or simbols or anything useful?
If not, please tell me any suggestion to make one?
For example:
Text with accent
ábê@#&/\xxed
Cleaned text
abexxed
Thanks
First step, convert accents :
$s=strtr($s,"áâàéêèîûôÔ","aaaeeeiuoO");
(the list is not complete, I know no better way to do this)
Second step, remove non-letters :
$s=eregi_replace("[a-z]","",$s);
It would be useful for programmers outside US a native function like that in php.
Anyway, thanks for your help. I will try it.
Rod