Re: [VOTE] Fix list() behavior inconsistency
| From: | Stas Malyshev | Date: | Fri, 26 Sep 2014 07:01:06 +0000 |
| Subject: | Re: [VOTE] Fix list() behavior inconsistency | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77644@lists.php.net to get a copy of this message | ||
Hi!
> Why do array_* functions not treat strings as arrays of bytes?
How that's related? We're not talking about array_* functions, we're
talking about list() operator.
> get busy :) - If we want to say "yea list() should work with strings",
> but no other array functions should work with strings, it seems very
> odd to me.
It's as odd as [] working with strings but -> not. Those are different
things, so they work differently.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/