Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130626 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id ABFF61A00BC for ; Mon, 13 Apr 2026 16:21:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1776097292; bh=ub81wda06xr6TejwoOe3EMg7DZs7/Gv7tOuiMa3Xid4=; h=Date:From:To:In-Reply-To:References:Subject:From; b=hs8pQrSkssqZyBOQnEorZlC4Ou5x8qpLtVyemLF2hZVf7IFA7Sqfji/CySUmynaGq jExiG/aDY6QbjbIdNCN05Vu8TqJQLsjbC97xAVcuO85pha/B2Pwd3L539/rehfMk2W hA+qIgDSK1GlgXx2RgQBbSBRkqRHUu70C3nwMQdcl6i8TdfW7i3sCNUrnor2/OqPGk SL2Ej5cxczkOGszRVP9ng9ywB2+pLmoVpDpYOWCtpyYJB7dUlN2ARU0qSPCq16gAqf IvZA4stxsviDNl2Y6dKxjH8tC/Wh6/3sq5DiloGJRDmMnt77ZEz04vYfey7JVLVHOp fJdFmPCelFhWA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3557E1801D6 for ; Mon, 13 Apr 2026 16:21:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 13 Apr 2026 16:21:30 +0000 (UTC) Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id 301D2140002F for ; Mon, 13 Apr 2026 12:21:25 -0400 (EDT) Received: from phl-imap-05 ([10.202.2.95]) by phl-compute-12.internal (MEProxy); Mon, 13 Apr 2026 12:21:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1776097285; x=1776183685; bh=D/wG28TPON UKaYEWBNxBAvBrdCZnzjrivzNtLldXw3U=; b=Rkkd/+kcdVZ437ekTYyDsahhQk wnFVmw3XhLxqUJ49DGlhxZ/F0094zFTLSPf/XBJnb0Gb8gCjrmVfh5vGj5ZZ0dt5 iIBXcHYy1n7ASUFyiSfIAKFjb7QnJaiI6tUy4mOwwcmBtG3KH2feg7oddRaoVL36 z4MK4P6Dqw7eZ4IC00mzABIuqS5LydSwQNVur+JvvtMMfCytLCc+Evsty/no2iB6 V6gtA+AV6gBb9BOhQZDCdSqeDdYhjGebfyhpE9rdJQ2Jqra+m9WMwHdjSNOwDBwt atMEwnrC7vH7GIYukWGKgxXIpGYi9yxObbU/bi5Z632LB/LBq84AowMD/N4w== 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:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1776097285; x=1776183685; bh=D/wG28TPONUKaYEWBNxBAvBrdCZnzjrivzN tLldXw3U=; b=bKVtzggqQ0q1MCj1i2cGxb1wkIJPdJN0Vt5rcLdGOZioCCxKCTx NqPduc4EDr8k/RCYmEZ+UJmVKAV0ZVbyfdGvS48+FmAC/tcy1cRyHuRmqxHwZFmI MO1IMamNCvrwLrEcqswbBvHxFSo7fW5Marzx8HzOEmrckk96b0zJyBKsOx9F5lSx oPtH5zUR16J14HYUxUf4CDYy2EtzWtueZZLmbKPVUMehYhmR9UqpElm6Fs9JL+C3 A1ZyPy1JWitFdI6dGNpVpOqUd5usEejTx8RWJokzoo57xAvXlGoxypq9iIf9lgNz YtBJXXTHvqMi9Z+A2/94ZfVjnpv9g1pUNHA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdefkeejtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepofggfffhvffkjghfufgtsegrtderreertd ejnecuhfhrohhmpedftfhosgcunfgrnhguvghrshdfuceorhhosgessghothhtlhgvugdr tghouggvsheqnecuggftrfgrthhtvghrnheptdeujedttefhueelhfdtleeiudetlefftd duleehffegtdeihefhleeijefgveegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomheprhhosgessghothhtlhgvugdrtghouggvshdpnhgspghrtg hpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepihhnthgvrhhnrghl sheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id E823E182007E; Mon, 13 Apr 2026 12:21:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: AeWzGyuMXtOs Date: Mon, 13 Apr 2026 18:20:59 +0200 To: internals@lists.php.net Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC] [Discussion] array_get and array_has functions Content-Type: multipart/alternative; boundary=e01e2e71e8afd29e280203c7da650307e3f26d62 From: rob@bottled.codes ("Rob Landers") --e01e2e71e8afd29e280203c7da650307e3f26d62 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 13, 2026, at 17:20, Larry Garfield wrote: > On Sat, Apr 11, 2026, at 5:30 AM, Barel wrote: >=20 > To Tim's naming point, perhaps `array_has_path()` / `array_get_path()`= ? (Or maybe `path` first, not sure.) >=20 > --Larry Garfield >=20 Can we please have array_path_has() and array_path_get()? Brings a whole= new world to yoda-conditionals. /s =E2=80=94 Rob --e01e2e71e8afd29e280203c7da650307e3f26d62 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Mon, Apr 13, 2026, at 17:20, Larry Garfield wrote:<= /div>
On Sat, Apr 11,= 2026, at 5:30 AM, Barel wrote:

To Tim's na= ming point, perhaps `array_has_path()` / `array_get_path()`?  (Or m= aybe `path` first, not sure.)

--Larry Garfield<= /div>


Can we please have = array_path_has() and array_path_get()? Brings a whole new world to yoda-= conditionals. /s

=E2=80=94 = Rob
--e01e2e71e8afd29e280203c7da650307e3f26d62--