Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5097 invoked by uid 1010); 8 Jan 2007 16:06:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 5081 invoked from network); 8 Jan 2007 16:06:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2007 16:06:30 -0000 Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.185 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [129.41.69.185] ([129.41.69.185:52833] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/A9-27400-FFB62A54 for ; Mon, 08 Jan 2007 11:06:23 -0500 Received: (qmail 7859 invoked from network); 8 Jan 2007 11:06:19 -0500 Received: from unknown (HELO ?10.1.6.4?) (10.1.6.4) by -H with SMTP; 8 Jan 2007 11:06:19 -0500 Message-ID: <45A26BFA.7040607@dealnews.com> Date: Mon, 08 Jan 2007 10:06:18 -0600 User-Agent: Thunderbird 2.0b1 (Macintosh/20061206) MIME-Version: 1.0 To: Andrei Zmievski CC: John Bafford , PHP internals References: <76AD94BE-DD27-490D-88F8-8D0EC4A2C4E6@zort.net> <8fd0bffd7fa15d43ac8943401e80b612@gravitonic.com> In-Reply-To: <8fd0bffd7fa15d43ac8943401e80b612@gravitonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PATCH] New functions: array_key_index(), array_first(), array_last() From: brianm@dealnews.com (Brian Moon) Andrei Zmievski wrote: > These functions seem to replace only a couple lines of code at best, > especially array_first() and array_last(). I don't think the cost of > keeping up the code/docs for the new functions warrants their inclusion. The same could be said for half the array functions. array_sum() is like 3 lines. IMO, the better question is, are these useful additions for people that work with a lot of arrays. IMO, they are good additions to a very useful set of array functions. -- Brian Moon ------------- http://dealnews.com/ It's good to be cheap =)