On Mon, May 14, 2012 at 2:01 PM, Pierre Joye <pierre....@gmail.com> wrote:
> hi Gustavo, > > I would add some examples inline in the RFC, with explanation, to ease > the comprehension of this new function and its possibility. The > current RFC is somehow hard to digest :) > Yes, that's what I was meaning earlier but was on my mobile phone. Thanks Pierre. Gustavo, why would I use array_part() if I could use array_slice() to get the parts of an array between two offsets. > > > Cheers, > > On Mon, May 14, 2012 at 1:39 PM, Gustavo Lopes <glo...@nebm.ist.utl.pt> > wrote: > > On Mon, 14 May 2012 13:23:27 +0200, Paul Dragoonis <dragoo...@gmail.com> > > wrote: > > > >> Am i correct in assuming this is basically substr() for arrays. > > > > > > No. That's a part of it. It also does indexes as keys (like array_slice) > and > > multidimensional arrays, none of which have anything analogous in > strings. > > > > > > -- > > Gustavo Lopes > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >