/ Published in: PHP

URL: https://www.cyrilpenicaud.com
A small function to remove accents in a string.
Expand |
Embed | Plain Text
function accent_cleaner($clean) { return $clean; } // Call the function $string2clean = "Par défaut lorem ipsum ne contient pas d'accent ni de caractères spéciaux contrairement à la langue française qui en contient beaucoup."; $cleanstring = accent_cleaner($string2clean); echo $cleanstring;
Comments

You need to login to post a comment.
Accents in string removed successfully. 192.168.0.1
Thanks, this method worked for me. Router Login