Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19798 invoked from network); 21 Jun 2011 11:13:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2011 11:13:37 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:46398] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/71-12449-0EC700E4 for ; Tue, 21 Jun 2011 07:13:37 -0400 Received: from localhost (xdebug.org [127.0.0.1]) by xdebug.org (Postfix) with ESMTPS id AE12DDE140; Tue, 21 Jun 2011 12:13:08 +0100 (BST) Date: Tue, 21 Jun 2011 12:13:08 +0100 (BST) X-X-Sender: derick@whisky To: Anthony Ferrara cc: Stas Malyshev , Todd Ruth , "internals@lists.php.net" In-Reply-To: Message-ID: References: <1308584208.6296.9.camel@guybrush> <1308586150.6296.13.camel@guybrush> <1308589044.8394.27.camel@inspiron> <4DFF7E2A.50506@sugarcrm.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: foreach() for strings From: derick@php.net (Derick Rethans) 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