Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91119 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67508 invoked from network); 8 Feb 2016 16:03:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Feb 2016 16:03:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=kinncj@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kinncj@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.49 as permitted sender) X-PHP-List-Original-Sender: kinncj@gmail.com X-Host-Fingerprint: 209.85.213.49 mail-vk0-f49.google.com Received: from [209.85.213.49] ([209.85.213.49:35079] helo=mail-vk0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/84-36326-A5CB8B65 for ; Mon, 08 Feb 2016 11:03:38 -0500 Received: by mail-vk0-f49.google.com with SMTP id e6so97911228vkh.2 for ; Mon, 08 Feb 2016 08:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=WUKwvelK+MGPTt+fYG+sQVw++ngToM6zGGSnO26gdd8=; b=knkohDDHok9OCQzzR3XCv9yh4oFImTvoh/xiBJEVVUcvEB1jtFslLjuCnBEAsKjgBK VWsmKRMpntoQHEipV5ZlDvRZz1KW6JSaf6DA2H0UXtKD3wwrTtbSj1rBh4IIB9mjgt0E 5lfJWYkYxiEwm5I8gby1Nlp+6oPxbA/JWTfNnaGSXMJEDZ9Tt5i0YDHDGhLIswOXV9hY lFTANBwTkCBHlwgziOR5dN5rcsovTeEEFqnbOcnwV0eeT3Kp8mYtfZdFu/8x6js0VmqM R1S5258rlnLWudwNv/P+Z4snB+oes0XU4+/SxIA8s87pk1S5KCAN+2J4qw5sib+tK0vk GWSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=WUKwvelK+MGPTt+fYG+sQVw++ngToM6zGGSnO26gdd8=; b=hPhSyANxDsQQbqXT4jdMIyQ+lfnTOozCXUYFDWNU6BghF0bkzggx7ZTqWqONYVD69r kfPxnTEkzrcU/7Y1Ze9RfmT+5+cvrYig7136Hh2SvQ0MF+EO5T8/Mnqy/jrTEgLB0Bwt /h+nt1GUnBvPXg2ayCyxbKhQO5/0mJEXMpBfzjtjxcclvzmu52suEAs595tAdz6Gg8tS RDb70Kayp7NEqnk28d2k8PJ0jFJGHOx49yN7TjirgwwK+1thIJLBFKi6mYMZ0xxuCp1g lcJ3hRxZ6SwbNzm2o8YpVql3eklxN3AVUkhI0zV127NYwTx+u9zW6RWeQqNjhQXng6uJ mt6Q== X-Gm-Message-State: AG10YOSNelN7dUlJNxjfJMUx3lQ86YukSSoKz1RlsahLnHpJ3qJEcsq2m+VX5+dsQk8ik+PCvQijBE0cdIh5kA== X-Received: by 10.31.50.65 with SMTP id y62mr21095685vky.11.1454947415581; Mon, 08 Feb 2016 08:03:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.52.23 with HTTP; Mon, 8 Feb 2016 08:03:16 -0800 (PST) In-Reply-To: <56B8BA24.7040003@lsces.co.uk> References: <56B8BA24.7040003@lsces.co.uk> Date: Mon, 8 Feb 2016 11:03:16 -0500 Message-ID: To: Lester Caine Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1143158adf6ac1052b4457d5 Subject: Re: [PHP-DEV] Proposal for a new array function From: kinncj@gmail.com (=?UTF-8?B?S2lubiBKdWxpw6Nv?=) --001a1143158adf6ac1052b4457d5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Feb 8, 2016 at 10:54 AM, Lester Caine wrote: > 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 recursi= ve > > 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=3Dcontact > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > And what's wrong with doing: https://gist.github.com/kinncj/566bbc019be5707b01f2 ? --=20 *--* *Kinn Coelho Juli=C3=A3o* *Toronto - ON/Canada* --001a1143158adf6ac1052b4457d5--