Re: foreach() for strings
| From: | Pierre Joye | Date: | Tue, 21 Jun 2011 15:13:19 +0000 |
| Subject: | Re: foreach() for strings | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53481@lists.php.net to get a copy of this message | ||
On Tue, Jun 21, 2011 at 4:38 PM, John Crenshaw <johncrenshaw@priacta.com> wrote:
> This mindset is fundamentally broken. You can call it a byte array all you want, but the truth
> is that 99.999% of the time, when a developer is using a string they need it for characters, not for
> bytes
Let me rephrase:
For backward compatibility reasons we cannot change this behavior.
Any serious text processing should be done using intl, mbstring,
transliterator (pecl) or other similar solutions.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org