note 96906 deleted from normalizer.normalize by thiago
| From: | thiago@php.net | Date: | Mon, 22 Mar 2010 14:28:23 +0000 |
| Subject: | note 96906 deleted from normalizer.normalize by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167292@lists.php.net to get a copy of this message | ||
Note Submitter: James Wheare
----
@akniep: Couldn't you have just used FORM_KD along with the diacritic stripping?
$string = Normalizer::normalize($string, Normalizer::FORM_KD);
$string = preg_replace('/\pM/u', '', $string);
Seems to do the trick.