Convert special characters to normal


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $ts = array("/[À-Å]/","/Æ/","/Ç/","/[È-Ë]/","/[Ì-Ï]/","/Ð/","/Ñ/","/[Ò-ÖØ]/","/×/","/[Ù-Ü]/","/[Ý-ß]/","/[à-å]/","/æ/","/ç/","/[è-ë]/","/[ì-ï]/","/ð/","/ñ/","/[ò-öø]/","/÷/","/[ù-ü]/","/[ý-ÿ]/");
  2. $tn = array("A","AE","C","E","I","D","N","O","X","U","Y","a","ae","c","e","i","d","n","o","x","u","y");
  3. preg_replace($ts,$tn, $p);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.