Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130562 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 5C0111A00BC for ; Sat, 4 Apr 2026 18:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1775326517; bh=jOCsX1Bs8cGGGrSRfclQEVP6kY6wPeCtPMbUqU3ksUw=; h=Date:Subject:To:References:From:In-Reply-To:From; b=gjhtKbWEvyXEFnZXniUs2nMnw1FM5gsmL/M3CRCg2G8GxLA8UqzvSQ4N3pwvRSD9v prmgIG31B4kY0V5VIjnb3mc/ps6ZP//ErOHEos2G7AZeBx532kkfHc+ag8zzp6zz42 xVCHTqsms8ibCIkpQCuNi1OF+ug3rTm2US9vy+vsxAI5VT9BRpxZgtTYEhur3sAX2m Vgi0wkdUvTcsi9gMAqRA7zqZMR0/FjQkQ7Pl6Y8CFxMPfqjbFi6KLBI9rQOZa2fwWx gHfXwyilZFi4gANR689pjLMPA9mWovdXIQUTiXSnw5h//2bFTByqIabrV3zpGOBQ8p LUPo/FBzPN2nQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B65E81801DA for ; Sat, 4 Apr 2026 18:15:16 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,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-a2-smtp.messagingengine.com (fhigh-a2-smtp.messagingengine.com [103.168.172.153]) (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 ; Sat, 4 Apr 2026 18:15:16 +0000 (UTC) Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id CDB8714000EA; Sat, 4 Apr 2026 14:15:10 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 04 Apr 2026 14:15:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=allenjb.me.uk; h=cc:content-transfer-encoding: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=fm1; t=1775326510; x=1775412910; bh=IRaMT/qN2JcCbI8KTAH/6B9EB84iLWOfz4uiLTWLQCw=; b= Ng1yrsl717SC1J984qrH1iML8Lr83LyRmH/mbXVhHk8rZ2A5B5SsfmzBhFKgBNxl Ns4eKI1LWgSfTVs33Tnx2D0+3E/D74k1kHqv9EGV11hAEPPn6pnBEHLdRBoBdrO/ xiEu+1ikvcr9VhaEbeIeNwlN24FSapfziF0h6s1NFNJU37+zugwac7EsjNG5XdF3 nbsosexEi5PwZsX4i1c42/PFYMY4PoP6QFVLHV2ISqpUYGcFL7X01uAZILuwLyfN /7tAY8xexccndoZqliF7xauQureLf/P5ftDQnm0IRMH2kLOPku/39cqSQ8eDwk+1 lL5K6OCfHgKqtcLYBrct1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1775326510; x=1775412910; bh=I RaMT/qN2JcCbI8KTAH/6B9EB84iLWOfz4uiLTWLQCw=; b=JtAo/+s7OiLfBKeJc akxiChblX8srkEmCM9fucNS1na8ULW+FAoJhyGD3V1VBEkCHLx+3Ar6Dq1o840gr DB3PArAJPFdl/0U0DeFGSUo7Qr2CUAMxI0emCqu1+TtgIWHmvWQf36T43hJmDUAC djtKnHNsK7uRrCB5/jbk4C27cqVxy2Ecz/ekUWBBUa9lXMGDRskfnQvbI7FJcpoN C/PkmwdBTGm+LlzHz+BLMkT5TlJ9R+PIO3p2pVkKgTaPhqKHd4CWWDJtA64jOwIm 6iEHaPEGMbQsBLuc3xXwi7TvKOlgb6tVObVD50ZzVlFBBT9HRcC/meTto0AxIbwv BHAaw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgdduvdehgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetlhhlvghnlfeu uceophhhphdrlhhishhtshesrghllhgvnhhjsgdrmhgvrdhukheqnecuggftrfgrthhtvg hrnhepffffjeetgffgtdethfeggeeuhefhhfehudffhfdtledvffefudduhedvkeeiueff necuffhomhgrihhnpehphhhprdhnvghtpdhgihhthhhusgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhprdhlihhsthhssegr lhhlvghnjhgsrdhmvgdruhhkpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegsrghrvghlrdgsrghrvghlohhnsehgmhgrihhlrdgtohhmpdhr tghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: idf69468d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Apr 2026 14:15:10 -0400 (EDT) Message-ID: Date: Sat, 4 Apr 2026 19:15:09 +0100 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] array_get and array_has functions To: Barel , PHP internals References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: php.lists@allenjb.me.uk (AllenJB) On 04/04/2026 15:06, Barel wrote: > Hi, > > I would like to open the discussion on my proposal to add two small, > focused array functions for retrieving and checking nested array > elements using dot notation. > > This is the link to the RFC: > https://wiki.php.net/rfc/array_get_and_array_has > > This is the link to the proposed implementation: > https://github.com/php/php-src/pull/21637 > > Thanks!! > > Carlos I echo others comments with regards to looking at / comparing to existing implementations (particularly Laravel, given its popularity), and escaping. I would also suggest that the function names should explicitly indicate they use dot notation to reduce potential confusion over which array functions accept dot notation and avoid potential conflicts should similar non-dot-notation equivalents be desired (for these or any future dot-notation supporting array_ functions)