Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64986 invoked from network); 8 Feb 2016 15:54:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2016 15:54:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.204 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.204 mail4.serversure.net Linux 2.6 Received: from [217.147.176.204] ([217.147.176.204:59411] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/04-36326-72AB8B65 for ; Mon, 08 Feb 2016 10:54:16 -0500 Received: (qmail 6276 invoked by uid 89); 8 Feb 2016 15:54:12 -0000 Received: by simscan 1.3.1 ppid: 6269, pid: 6273, t: 0.0556s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.7?) (lester@rainbowdigitalmedia.org.uk@81.155.186.161) by mail4.serversure.net with ESMTPA; 8 Feb 2016 15:54:12 -0000 To: internals@lists.php.net References: Message-ID: <56B8BA24.7040003@lsces.co.uk> Date: Mon, 8 Feb 2016 15:54:12 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal for a new array function From: lester@lsces.co.uk (Lester Caine) On 08/02/16 15:42, Pierre Joye wrote: >> I want to propose a new PHP array method, called has_numeric_keys (or >> > something similar/better), that would have the following method signature: >> > >> > bool has_numeric_keys(array $array) > I have no strong opinion on it but I wonder if it should have a recursive > version as well, if accepted. I see it a bit like array_walk. I did wonder about that one, especially when DB queries tend to return a list of numeric keyed records which may be numeric or named arrays ... -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk