Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84210 invoked from network); 28 Jun 2018 13:21:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2018 13:21:35 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:44935] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/0A-01794-ED0E43B5 for ; Thu, 28 Jun 2018 09:21:34 -0400 Received: from [192.168.2.101] ([79.222.41.233]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M5cpk-1gMwcM1WMC-00xZax; Thu, 28 Jun 2018 15:21:30 +0200 To: "Woortmann, Enno" , Rowan Collins , Marc Bennewitz Cc: PHP internals References: <75db877c-ef0b-7d3b-48a8-9879d90352b0@web.de> <3242366.BL9MUqXe46@vulcan> <2241856.Iz1GuBRvza@vulcan> Message-ID: <598fe6e1-6182-4498-7f32-e89c8da8d378@gmx.de> Date: Thu, 28 Jun 2018 15:21:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:HJoBcN6C/c/4oD9obDr5XGOsTGXa0J3EGWY/lvD8lwQbd6KzUIK 1ZwQGZkedCrvu6rQ27+ewK4aDtTwafzO+WvwhLvmw86CGi1V0jNAHk5m3BpWVTAVYEHvKin qXBSx2PIJBySeCcFTREtzJm0ftwZ3dlDI9jypiVs0zcjZJuEZI7u0ZBpSfphaWCG0Iw1biR RUqUnP/ik/t/JM7cIiujQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:0vMkuKqzUyY=:ZgygYDwjtsXUVnong0/u1v 5k4HMU+kY5nza8RO5/NFBKC3qPru5Z8hHzInu0RndDzARN4DPYRwm5tz94sYBzVEMRmDlKqPr K7O3yea45eIz3Jh8b+GqmaxyOOyFz5Y+h7W19SEXMGj3q4lzQf5lf7Z4T48dQcTBQfyh1h392 jeMhW75gWrGGufkBqzGhqj09g15AtoubtQaGh1f4HYaxw0iX7DVp4JLs2LqMID6DHyKj69nWa USgLWeCUL1SBDJTW901IjChf3c51YOaZ84FvOfDM7iONokBQEzz3df6iANZcCsR4Uk9/a+Guw U8w/AIGVILyuxM9+QB4Pm/9rdSzEKaXGOHlUKlT2xgNRvtlqHqLrwxCsIxN90TaRpfWmua8Ok i4hYyGHV53zqwFTk8OS1ur1RibEYTJUBqOK8O3YfTA6PWI68n/CcQbUXdMU+tHoyipcBc4cO5 V9oGJdNO/7psbrfhclR9/giXMsWGwIOc2ozgKqfFyRRUd1ht9T3ze4NcI0cJ7doZqVWSF5v4R oZPRGEOhd5TwBGLagtaWf4siZ3fMJf9JZr8EQkup/oDQRTsSZVQmToofPrlyY/IOpBs2FaBZC b3ApiZkavWOSY+tnDNyGYx4c7hCUdqdZn4ChmudwjVi5W9OkwIlHXmBXY4WnVMxvHiyRild8V uK9Xsn4S+SHXniTF1OPtVVTI0TCWd7nkKPuKpurdRsT4cquHy0NaYbss5gxckDmpgHTHKxyRm m35qx3D9Z3RKZTiNyX6KYDThizDTpJVihMMZAjzp1ifSDlmWEXxDM8yTptYk2YWvVHO/vX+nF zmteKpg Subject: Re: [PHP-DEV] [RFC][Under Discussion] Add functionsarray_key_first()and array_key_last() From: cmbecker69@gmx.de ("Christoph M. Becker") On 28.06.2018 at 15:02, Woortmann, Enno wrote: > Are there other opinions concerning this topic? In my opinion, there are already too many array functions, so I'm not fond of adding more to it. That said, I see the usefulness of array_key_first() and array_key_last(), but not of array_value_first() and array_value_last(), since these could easily be implemented on top of the key functions in userland. Also, it would be possible to implement the suggested array_first() and array_last() on top of the key functions, with whatever signature the user desires. Anyhow, thanks for the RFC! -- Christoph M. Becker