note 96906 added to normalizer.normalize
| From: | JamesWheare at osu1 dot php dot net | Date: | Mon, 22 Mar 2010 14:17:25 +0000 |
| Subject: | note 96906 added to normalizer.normalize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167291@lists.php.net to get a copy of this message | ||
@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.
----
Server IP: 87.124.86.47
Probable Submitter: 78.151.206.43 (proxied: 78.151.206.43)
----
Manual Page -- http://www.php.net/manual/en/normalizer.normalize.php
Edit -- https://master.php.net/note/edit/96906
Del: integrated -- https://master.php.net/note/delete/96906/integrated
Del: useless -- https://master.php.net/note/delete/96906/useless
Del: bad code -- https://master.php.net/note/delete/96906/bad+code
Del: spam -- https://master.php.net/note/delete/96906/spam
Del: non-english -- https://master.php.net/note/delete/96906/non-english
Del: in docs -- https://master.php.net/note/delete/96906/in+docs
Del: other reasons-- https://master.php.net/note/delete/96906
Reject -- https://master.php.net/note/reject/96906
Search -- https://master.php.net/manage/user-notes.php