note 100707 deleted from function.strtr by danbrown
| From: | danbrown@php.net | Date: | Mon, 01 Nov 2010 15:19:23 +0000 |
| Subject: | note 100707 deleted from function.strtr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173660@lists.php.net to get a copy of this message | ||
Note Submitter: magicaltux at php dot net
----
In reply to sales at mk2solutions dot com, there's a better way to do that :)
return iconv('UTF-8', 'ASCII//TRANSLIT', $toClean);
Make sure you have the appropriate locale set (see http://php.net/setlocale) and that your input is in UTF-8 (if
not, change the first argument, easy!)