Re: [RFC] [DISCUSSION] array_part()

From: Date: Mon, 14 May 2012 13:41:25 +0000
Subject: Re: [RFC] [DISCUSSION] array_part()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-60579@lists.php.net to get a copy of this message
On Mon, May 14, 2012 at 2:01 PM, Pierre Joye <pierre.php@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 <glopes@nebm.ist.utl.pt> > wrote: > > On Mon, 14 May 2012 13:23:27 +0200, Paul Dragoonis <dragoonis@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 >

« previous php.internals (#60579) next »