/ Published in: PHP
// FUNCION BY Ahmet Alp Balkan
// http://www.ahmetalpbalkan.com
// http://www.ahmetalpbalkan.com
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // FUNCION BY Ahmet Alp Balkan // http://www.ahmetalpbalkan.com function replaceAccents($newphrase){ $a = 'ÀÃÂÃÄÅÆÇÈÉÊËÌÃÃŽÃÃÑÒÓÔÕÖØÙÚÛÜÃÞßà áâãäåæçèéêëìÃîïðñòóôõöøùúûýýþÿŔŕ'; $b = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr'; $newphrase = strtr($newphrase, "à âäçéèêëîïôöûü","aaaceeeeiioouu"); return $newphrase; } ?>