Re: Re: foreach() for strings
| From: | Derick Rethans | Date: | Tue, 21 Jun 2011 11:13:08 +0000 |
| Subject: | Re: 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-53475@lists.php.net to get a copy of this message | ||
On Mon, 20 Jun 2011, Anthony Ferrara wrote:
> > text_to_array($s) == str_split($s, 1)
>
> No, because str_split always splits into 1 byte chunks. text_to_array
> would take the character set into account (or that's where the utility
> in it would be)...
No, as PHP currently does *NOT* know about character sets. If you want
character set, we need Unicode strings like we had in the "PHP6" branch.
Derick