Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:121325
Return-Path: <larry@garfieldtech.com>
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 73117 invoked from network); 15 Oct 2023 16:10:24 -0000
Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5)
  by pb1.pair.com with SMTP; 15 Oct 2023 16:10:24 -0000
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id AB6F41804D0
	for <internals@lists.php.net>; Sun, 15 Oct 2023 09:10:22 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,
	SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no
	version=3.4.2
X-Spam-ASN: AS29838 64.147.123.0/24
X-Spam-Virus: No
X-Envelope-From: <larry@garfieldtech.com>
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19])
	(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 <internals@lists.php.net>; Sun, 15 Oct 2023 09:10:22 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
	by mailout.west.internal (Postfix) with ESMTP id 8C861320095B
	for <internals@lists.php.net>; Sun, 15 Oct 2023 12:10:20 -0400 (EDT)
Received: from imap50 ([10.202.2.100])
  by compute1.internal (MEProxy); Sun, 15 Oct 2023 12:10:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	garfieldtech.com; h=cc:content-type:content-type:date:date:from
	:from:in-reply-to:in-reply-to:message-id:mime-version:references
	:reply-to:sender:subject:subject:to:to; s=fm3; t=1697386220; x=
	1697472620; bh=PoiN3jw1C1A7uikaUPdI/mLMEOv5eG2XA9RZzeVe2vU=; b=I
	8L/MRgIcTp65wkNQ8hS5YmWHa/GinYGaKUl7qYtVTGc9lUxw52y1yu9WMQenm6cV
	zPyP2UtcM13M0P4o/DtTiEM2x1Q8EzEkxLRx7988l56p0EY98shuHDR5aSgYJu27
	7P8/5vs4LRNrm2H8xJt27aQaTSUENdd8qzUV8p03JKtsDFL1R93bhf39g3MYU34k
	qgBmbRtcpIJoKq0OL9wRbFLZPgq8RtFhOyUghLt8pC11aXcaPqrJo1esCILPIHJf
	mSLyVcdlSFyqT5K/lkpX76tXUfLD9nTwOYK03SkYn+dg6MqLcDx5Q8LaHMTz83GN
	zcGiCrSCgBJnNmDKnEr/Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:content-type:content-type:date:date
	:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
	:message-id:mime-version:references:reply-to:sender:subject
	:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
	:x-sasl-enc; s=fm3; t=1697386220; x=1697472620; bh=PoiN3jw1C1A7u
	ikaUPdI/mLMEOv5eG2XA9RZzeVe2vU=; b=t5KBUxsKcYE5OcOqzi0CLd6U/mcg6
	P0QqL4lgppDlOlngZduRaoCh2tEGjvFPbVAuhNMIYz5nUbSJ06Mq7cB1N6Y2C1Ty
	h9qXvnTrA/wERDgAzo5sbvSKqeenl8iyAaK6YHLQIYAJU775wKaPPSrVuuolk2ei
	2CYq/3JCHozhaY2hp5SgbaufNKaKPHW28FyyFG32xeqe5k6vSRnm1un5GwGvcHN0
	LmFX33ff2aF19lg76nhw/7dO8QiLn/EedDdjIN7M7TxPF6ImX5IwmMCQlR1oscZ1
	mCXbJ22c3FUbaepW4Avtzn1/pwVAqPghvmEzyUatcgHi8zu7vqjRiI1zQ==
X-ME-Sender: <xms:6w4sZVEKZbmeGF0rM4vjV_SVWN52Ww3sqTv8iT62NhXSKY_j0ypC4Q>
    <xme:6w4sZaVG7L8SvuvTXhsNr21crN7MdchAfNHX8FNL-_6zt_L1Cc4t2VLCNKXqhTvqt
    -8ut1jLovsRzg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrieekgdelvdcutefuodetggdotefrodftvf
    curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
    uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
    fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr
    hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh
    eqnecuggftrfgrthhtvghrnhepveehhedvveejledvvefgleevffdtjeekledvkeegheff
    gfeivdejhffhledtudetnecuffhomhgrihhnpehphhhprdhnvghtnecuvehluhhsthgvrh
    fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgv
    lhguthgvtghhrdgtohhm
X-ME-Proxy: <xmx:6w4sZXKqjixot5kwi9LFwm7qmZ0aOZiS38lGUFHD0uJYrw7a-slENQ>
    <xmx:6w4sZbFq3GcvHvzYLZ5FWs7tK8emsol4Qqg_wScK3vgrrWUFogYmOA>
    <xmx:6w4sZbU3JFasM3W2vF2zY3rVLdsicEIeTQq08vrwOITVHlfMHitNFA>
    <xmx:7A4sZYVv01mqz1B39hr0isy0ulYspXo8p6pR9mghB2d8Xu_Ut6XQNw>
Feedback-ID: i8414410d:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
	id B41FB1700089; Sun, 15 Oct 2023 12:10:19 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85
MIME-Version: 1.0
Message-ID: <2d2c0f39-9577-4b43-8de6-6ad326dbd6b2@app.fastmail.com>
In-Reply-To: <72198e55-b2b2-485c-b602-c68b76694368@processus.org>
References: <e3fda36d-e248-4c98-9c46-5c33e7398098@app.fastmail.com>
 <DB728AC9-4C22-4DF7-9767-CE14B91659F0@benramsey.com>
 <72198e55-b2b2-485c-b602-c68b76694368@processus.org>
Date: Sun, 15 Oct 2023 11:09:58 -0500
To: "php internals" <internals@lists.php.net>
Content-Type: text/plain
Subject: Re: [PHP-DEV] Two new functions array_first() and array_last()
From: larry@garfieldtech.com ("Larry Garfield")

On Sun, Oct 15, 2023, at 7:40 AM, Pierre wrote:


> The first two probably only make sense for a numerically indexed array, 
> so I guess that array_is_list() (whatever the name is, I don't want to 
> bikeshed about naming) would be a good addition as well, that, in my 
> opinion, would be pertinent to add at the same time.

That has already been done: https://www.php.net/array_is_list

--Larry Garfield