Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60577 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75790 invoked from network); 14 May 2012 13:01:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2012 13:01:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gg0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:45011] helo=mail-gg0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/A5-44671-B2201BF4 for ; Mon, 14 May 2012 09:01:32 -0400 Received: by ggnf2 with SMTP id f2so3633669ggn.29 for ; Mon, 14 May 2012 06:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PouuX+HK1SxQp6n31ZkJyEi5x8kizB8WUnuNI3gji+Y=; b=jiChAoyk2XvwCf8r2knzLv1Rp3cfcZW55qaCuMlqvmMagQhkymDHP/cRUxDqFSWR1A TCeBNNzBLQAHiCynQLSTCPVzBjYVaV+RnZE7bzHv7c6thEgPDbPoB4kyz9JPiG5rbTgQ cblfv8tqLuzGRuxoxEHfRfUAYMVbE1FNsAfawLBphqhS3zbBhmM+y/CoLjUvhNe1tQAU 3zz2rCwaQK2BuFB85q1nrYMYREwtcDIp5Fg31aUCqJ4dxLZUvmlKxXg8zudCDPm1CDZ6 fp4xJziYcDj84UasoFBILp+8vw8UlXljPjE4IbSEzEvvZ2GHWstTyfHzea/6k4VB6e0o 2TRQ== MIME-Version: 1.0 Received: by 10.236.114.161 with SMTP id c21mr7973910yhh.51.1337000489292; Mon, 14 May 2012 06:01:29 -0700 (PDT) Received: by 10.147.113.7 with HTTP; Mon, 14 May 2012 06:01:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 14 May 2012 15:01:29 +0200 Message-ID: To: Gustavo Lopes Cc: Paul Dragoonis , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] array_part() From: pierre.php@gmail.com (Pierre Joye) 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 :) Cheers, On Mon, May 14, 2012 at 1:39 PM, Gustavo Lopes wrote: > On Mon, 14 May 2012 13:23:27 +0200, Paul Dragoonis > 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