Remove accents from a string


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



Copy this code and paste it in your HTML
  1. <?php
  2. setlocale(LC_ALL, 'fr_CA.utf8');
  3. echo iconv('UTF-8', 'ASCII//TRANSLIT', 'èàềéầïæÆêç');
  4. // eaeeaiaeAEec

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.