Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121326 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74752 invoked from network); 15 Oct 2023 16:21:26 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Oct 2023 16:21:26 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 191101804B4 for ; Sun, 15 Oct 2023 09:21:25 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS9370 160.16.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 15 Oct 2023 09:21:24 -0700 (PDT) Received: from smtpclient.apple (softbank060067217005.bbtec.net [60.67.217.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 3632F401F3; Mon, 16 Oct 2023 01:21:21 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1697386881; bh=WRaEIZgIf6W17W1pAJ8+4sYyECrT9VcW07EbFeFQJkU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=yBcV0CKxtNqdSyJ4BTgHfhcyKpBSIJlv+vwwuVWPSw5nCzRSQ0Le/IpzN3QRweKRc RoKDvYMnWwl8jWFY/vVbCWTiOgpCJZ/qN51cZJAUszfoCc35XTOkB7gSpfY7tD7LYV Pa8LxAERo/eb4Umt5F4bjeKz8+P50Ly33Jdm7GCk= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) In-Reply-To: <72198e55-b2b2-485c-b602-c68b76694368@processus.org> Date: Mon, 16 Oct 2023 01:21:08 +0900 Cc: Ben Ramsey , Nikita Popov , David Grudl , Levi Morrison Content-Transfer-Encoding: quoted-printable Message-ID: References: <72198e55-b2b2-485c-b602-c68b76694368@processus.org> To: Pierre X-Mailer: Apple Mail (2.3731.700.6) Subject: Re: [PHP-DEV] Two new functions array_first() and array_last() From: saki@sakiot.com (Saki Takamachi) Hi Pierre > The first two probably only make sense for a numerically indexed array I do not think so. If these are something like "reset/end without side = effects", then they should work fine even not numeric indexed array. Regards. Saki=