Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102225 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73466 invoked from network); 11 Jun 2018 12:15:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2018 12:15:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=enno.woortmann@web.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=enno.woortmann@web.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain web.de designates 212.227.15.4 as permitted sender) X-PHP-List-Original-Sender: enno.woortmann@web.de X-Host-Fingerprint: 212.227.15.4 mout.web.de Received: from [212.227.15.4] ([212.227.15.4:49977] helo=mout.web.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/6D-62758-4E76E1B5 for ; Mon, 11 Jun 2018 08:15:33 -0400 Received: from [192.168.0.48] ([77.21.86.66]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MfkOq-1feOPN1zQS-00N67m for ; Mon, 11 Jun 2018 14:15:29 +0200 To: internals@lists.php.net Message-ID: Date: Mon, 11 Jun 2018 14:15:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------64EF6455F5B988F3C27930A4" X-Antivirus: Avast (VPS 180611-0, 11.06.2018), Outbound message X-Antivirus-Status: Clean X-Provags-ID: V03:K1:4bxPKV9OS/CYJUmk3zpEvEoIxMwzNgsD96cPgdRaYODzLI0BP8o nJwo0lW84AGl4rzQqN5o8wbKxrBAfHowzjO85s5JrHdpvLIkpYQDcDvMujwHP20/DaKsKnM d0Y/3flDCVTAbvFgDtLmA2qEPI7ASaBAxok/7tphXYtuGEsFnNong5KNeUw34eytOZaHPID 9wPBeQmbDPUvusgxe1g7w== X-UI-Out-Filterresults: notjunk:1;V01:K0:Syv1niJsP3I=:UQSpBh6H1hMqh7BMTdwkyQ aM4YXO29Yj4+XrOBWZos+nPkMTsc/Ab1X4xVM/gDJT4BbUyBRq8brnovj6zNo64UTg66V6kLQ G5v/P53Jxv5Nd6pmrnYR2iUP7OPiqKI+COEN6bUMKIXAirYJT+W8A32O3OUV28qZLfCoPJn7G XUxI8Le9o7G6SW+5Hqymg3SWSJ5dpA5hAVlCsFAMB64Sorehw8ccpiKCy27Ihlacpk172K2Gr TYTWzSwk394du3uTGnJRhHDzKEuPzdzD7XjfWGPPEGZJJNp/EUkNoekp4Fg3QyNAeU/22+NQa fMNjAQtcrEyqLtaYIlaq3s4tZ2el3nKLy/Ue29QBBdIgKh1tjcUfwjzswvHVacBoaOufROizi IPfLuUENnaoGSOtRYDhEtW1Wjx9ZAHivEZT8AgyMXDigRB5mVLt0S1LgoDrxcTJ2Gw06tWbh4 t159oDQaLn5wN5SwOn9hCLkU6E/Lb2rQUBDebL7oN6BVlbE3F3aG3BMD8Ij8BgEsQ6Y+wDVfN tzln8bBNLnjh7CyklVzTQggWup72Eg2QFd6h57ki2iO9IqZ43S1K7oTvm3/Mc0fTPsICFh+5p 3WIEi/CA2GtgzM6RAsRGWWczwoeCJ2amvuvkEG7OIsD9uYxlmyTwtb0PzaS3X22YPpKNEaYYw rrxY3USLeFF2iyA+vYDnm9Ob0SXnRK2LagmVu131a3d1HrFXjrl+qCwyRp3XgDvRQSbW1h26F QjIK2WnIF8EVazb8M58eQ+eSIdznxfF/gJ8jQqILssyadvLxW+D3CM9SA8PWPoz+WZtSjzXUb gx1StMb Subject: Add functions array_key_first() and array_key_last() From: enno.woortmann@web.de (Enno Woortmann) --------------64EF6455F5B988F3C27930A4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello Internals, I'd like to ask for feedback for my idea. Some years ago a pull request came up to add array_key_first(), array_key_last(), and array_key_index() functions (#347 ). In the meantime a RFC was published to integrate the functions (https://wiki.php.net/rfc/array_key_first_last_index) which was discussed in the mailing list two and a half years ago (https://externals.io/message/89955). Since the pull request and the RFC doesn't sustain a real progress and in my opinion at least the functions array_key_first(array $a) and array_key_last(array $a) would be handy in some cases I'd like to propose using a smaller functional scope as a first step including only this two functions. Additional features like returning the value of the requested element or the function array_key_index() could be implemented in a later stage if required. I implemented those two functions in a different implementation approach which tries to use as much existing code as possible available and already created a pull request at https://github.com/php/php-src/pull/3256.= For the next steps I'd like to create a new RFC as the functional scope differs to the existing RFC. Therefor I request a PHP.net wiki account (wiki username: wol-soft) to create a new RFC. Regards, Enno --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr=C3=BCft. https://www.avast.com/antivirus --------------64EF6455F5B988F3C27930A4--