Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36022 invoked from network); 12 Jun 2018 10:54:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jun 2018 10:54:54 -0000 Authentication-Results: pb1.pair.com header.from=carusogabriel34@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=carusogabriel34@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.46 as permitted sender) X-PHP-List-Original-Sender: carusogabriel34@gmail.com X-Host-Fingerprint: 74.125.82.46 mail-wm0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:33031] helo=mail-wm0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/D0-27729-D76AF1B5 for ; Tue, 12 Jun 2018 06:54:53 -0400 Received: by mail-wm0-f46.google.com with SMTP id z6-v6so19197710wma.0 for ; Tue, 12 Jun 2018 03:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9UWneq5xgeez5K+YLZZSZAMtXmXLUYfUbo6OhfuCYFU=; b=LdOC10YFMwshh3EaA8IVQasWCb0PRNFUdzuGOddnS3wWaHrFGz1fUg4u7C4T07SNJH BFi/+dlK5dmPDmJ7NpBC3IytUTNDYeLNVUb/AaRwcMXHKaGH/8JsEe+Wb9Tk32EfKLMK tuwrSWgPrp8xT5TdT+nxyyrYJ6/iv6hr3eSdNfgeouOJlaH+SIYQ9BdMFEVBFQALp/59 FN2WT+eX2JkROp5RSToLJR6lTf0D/SLb7dfPPv6X8WceV7s2eStmPHX/Pkdl/uy+dEtX 4wm4j5vSlWiut2HMWUYC7uWa/vLVBBNf5uiMnzIXdQLOgxIhd0NWX1LFLTH+vHXedrbT wxuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9UWneq5xgeez5K+YLZZSZAMtXmXLUYfUbo6OhfuCYFU=; b=UgWl10rWGX/gTYcVsZgYao2VhPYC5A93Zz9cI+YfxWe6bRt+QACCgbV889mS40xhxf nxkxlGVAhm6m6vItqmzaU0y8GlknYzN8R1au/WPvHyC+AioId3yun6i+v8f0Ll7d2d/a P1KSH8NuqQOGu0csduDIsKtQ8n0MEhnm0P8JMXXjTYc34weD/ukTI9Ogi9G77V0zkJ4R 3lOh0x5NLJ861pFHAFe6x5lUACT5ez8+vpPBvuKdWwtaeMi+fhmA7iSTGC8scugmzym2 ZH8OnCLE9lrs7RJIYF/p+fQIOTd4zE2kDzJrjWVI5O5qIsyXWMYfFey8zZcHUDWIr5cW lAvQ== X-Gm-Message-State: APt69E2HJz8lwKC5FOsEdn5uw4sJigDXA1pSQSSArYs85mM+XzzsVfqD MHMeCW6+15BOj/WKVVI4/1pwcBLv6bXKHRYuw2c= X-Google-Smtp-Source: ADUXVKKXKE+ZglRu61HzOhEPmpRL8Edh6dPTFy/TUCf8l8Jb5odqjlCkH/5jCNCRBflSk/kX8elcO2arlCgYHzEaX2M= X-Received: by 2002:a1c:6f5a:: with SMTP id k87-v6mr1662156wmc.142.1528800886432; Tue, 12 Jun 2018 03:54:46 -0700 (PDT) MIME-Version: 1.0 References: <88f5ea2f-9a31-82b9-1e32-3855f34c8453@web.de> <4248547.0z0Fkv17lm@mcmic-probook> In-Reply-To: <4248547.0z0Fkv17lm@mcmic-probook> Date: Tue, 12 Jun 2018 07:54:34 -0300 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000c4a944056e6fb147" Subject: Re: [PHP-DEV] Re: Add functions array_key_first() and array_key_last() From: carusogabriel34@gmail.com (Gabriel Caruso) --000000000000c4a944056e6fb147 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em ter, 12 de jun de 2018 =C3=A0s 07:04, C=C3=B4me Chilliet escreveu: > Hello, > > Shouldn=E2=80=99t we also add array_first and array_last for consistency? > reset and end may be used for this but they modify the array state and > cannot be called on function results. > > C=C3=B4me > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi C=C3=B4me, Thanks for bringing the discussion about `array_first` and `array_last`. I'm pretending to code it and propose those in the next version of PHP after PHP 7.3, with the names `array_find_first` and `array_find_last` :) Thanks, --=20 Gabriel Caruso --000000000000c4a944056e6fb147--