note 95641 deleted from function.str-replace by thiago
| From: | thiago@php.net | Date: | Wed, 13 Jan 2010 18:05:18 +0000 |
| Subject: | note 95641 deleted from function.str-replace by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164937@lists.php.net to get a copy of this message | ||
Note Submitter: paul at kronomy dot com
----
I tried converting hard UTF-8 Patterns, and searched desperately for a version of str_replace() that
could handle UTF-8.
This saved my day:
http://www.phpwact.org/php/i18n/utf-8
str_replace
Official documentation: str_replace
Risk: none
So long as all arguments used are ***well formed UTF-8***, no problems.
This works because *every complete character sequence in a UTF-8 string is unique* (cannot be
mistaken as part of a longer sequence).