And what actually failed? The idea seams straightforward.
Robert
2011/6/20 Johannes Schlüter johan...@schlueters.de
On Mon, 2011-06-20 at 20:38 +0200, Robert Eisele wrote:
I really like the ideas shared here. It's a thing of consideration that
array-functions should also work with strings.
2011/6/21 Robert Eisele rob...@xarg.org
And what actually failed? The idea seams straightforward.
Robert
http://www.slideshare.net/andreizm/the-good-the-bad-and-the-ugly-what-happened-to-unicode-and-php-6
to my understanding: in retrospective the utf-16 wasn't the best idea, it
caused more
Hi!
On 6/21/11 1:23 AM, Ferenc Kovacs wrote:
2011/6/21 Robert Eisele rob...@xarg.org mailto:rob...@xarg.org
And what actually failed? The idea seams straightforward.
Robert
http://www.slideshare.net/andreizm/the-good-the-bad-and-the-ugly-what-happened-to-unicode-and-php-6
Also
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
Adding to John Crenshaw's list of reasons not to implicitly
treat strings as arrays in foreach loops... Please keep in
mind the following valid code:
$s = 'hello';
foreach ((array)$s as $x) {
var_dump($x);
}
The result is:
string(5) hello
That behavior can be handy. Hopefully, a BC break
Hi!
On 6/20/11 9:57 AM, Todd Ruth wrote:
Iterators are nice. Having a text_string_to_array function
would also be fine. For example:
$s = 'hello';
foreach (text_string_to_array($s) as $x) {
var_dump($x);
}
text_to_array($s) == str_split($s, 1)
--
Stanislav Malyshev, Software
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)...
On Mon, Jun 20, 2011 at 1:06 PM, Stas Malyshev smalys...@sugarcrm.com wrote:
Hi!
On 6/20/11
On Mon, 2011-06-20 at 10:06 -0700, Stas Malyshev wrote:
Hi!
On 6/20/11 9:57 AM, Todd Ruth wrote:
Iterators are nice. Having a text_string_to_array function
would also be fine. For example:
$s = 'hello';
foreach (text_string_to_array($s) as $x) {
var_dump($x);
}
I really like the ideas shared here. It's a thing of consideration that
array-functions should also work with strings. Maybe this would be the way
to go, but I'm more excited about the OOP implementation of TextIterator and
ByteIterator, which solves the whole problem at once (and is easier to
-Original Message-
From: Anthony Ferrara [mailto:ircmax...@gmail.com]
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)...
I think
2011.06.20 21:38 Robert Eisele rašė:
I really like the ideas shared here. It's a thing of consideration that
array-functions should also work with strings. Maybe this would be the way
to go, but I'm more excited about the OOP implementation of TextIterator
and
ByteIterator, which solves the
On Mon, 2011-06-20 at 20:38 +0200, Robert Eisele wrote:
I really like the ideas shared here. It's a thing of consideration that
array-functions should also work with strings. Maybe this would be the way
to go, but I'm more excited about the OOP implementation of TextIterator and
ByteIterator,
12 matches
Mail list logo