Re: substr/array_slice in []
| From: | Alexey Zakhlestin | Date: | Fri, 05 Oct 2007 05:20:45 +0000 |
| Subject: | Re: substr/array_slice in [] | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32641@lists.php.net to get a copy of this message | ||
On 10/5/07, Larry Garfield <larry@garfieldtech.com> wrote:
> Here's the question I see. Right now, does an ArrayAccess object work with
> array_slice()? If so, then [2, 5] syntax would be just some nice syntactic
> sugar. If not, then it becomes a powerful new feature, and implementing it
> on normal arrays and strings becomes just a matter of consistent syntax.
currently, array_slice doesn't work with ArrayAccess
--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/