Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130570 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 C4A401A00BC for ; Sun, 5 Apr 2026 09:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1775380783; bh=+nNB8fEubN3Flz4ERtVzmITto3+sp0QI30WoK7XkM+0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nSldktNoDc7qbecOaf217LfObHGGYB7nfj038a2LmoglC91gUYnJYLUfhhGt4UqnQ 5icdIh1hlL8peHBaO7SHcZ9m4XJp71GnFkBpIR94FrtA2VWHhBgiklHzHr4HDBUyH2 TWjOsEfpQCL65Q4ylkpGHqjwVV+mTlgYM7yIi4t9qq1KWfjAcCBczOz4x3sLUr6Sy/ KsTj6acQL7JLRKLNE5bD3gDZ3P//s4YApemx+4k02nsjbDDcQZPX3wz2zrPR4bR0Za m8L8qCY4aGAd+3+2iv5ZAVuVcAPQ/x6srHNnnMGpO5Lls8I71uVBTbpvEycufgjSAC E0TS1OFvyctfQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 45580180057 for ; Sun, 5 Apr 2026 09:19:39 +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.6 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 ; Sun, 5 Apr 2026 09:19:38 +0000 (UTC) Received: by mail-qt1-f179.google.com with SMTP id d75a77b69052e-50baafd6c4aso40231661cf.1 for ; Sun, 05 Apr 2026 02:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775380773; cv=none; d=google.com; s=arc-20240605; b=lO2d8RgWzJhkZOm/EWOXjURto8vFQepz+JtkxzPPhlpzj12yBJ620saDeWAix6Ej+N Gp70R1TbK5pXIEKmY1OmB6W+XIKq/KPqg+M99fXnTtIvQorML4tNaaykBm4qklwnwMKg tvk7M4TJGxgUnxgyQTPaMUUqEChsO9CxygKi+iCnGGvLYij93HUy4D9sCMYxmRvCrETr 2X7561BJhGCNea80I2i1w0BIeMYY1qRjPM3qv5fVWrtE5a4ou8CboF9VdrpNnNvmawXn XdTzdcAtkYxOmI78jXu9WK+UszTT0ukQsGPezvQSNosf4D4kN7C9Nbr2W57MjS4IqGj2 HWtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=+nNB8fEubN3Flz4ERtVzmITto3+sp0QI30WoK7XkM+0=; fh=UnQaHb7iBy3BaPAgdo1b84AnBs+n8VBH/4v9gHBiXBk=; b=AmnURhmES5y9IdG1FDwN9L6c4jNLQRXUo2oE+X1dRzgAvrFaXdDch41Z2VyNnPIWa6 zHw5ZUV4zLf6lAEYKK1k/3ehCwU3c9B8gEzrJaV1852KFVvHmP6l0DprxB9suAhXNLwd nEHe1ZhiMruCYag84X0XygKRQm23nmOxmwvbeyPC2yx0ePeieGUUpTTZXV+knuDQMyCd gUJBLOFAXXe3Sgi2v+XnR7BmtuK+Lb/jOP9FoPuMZ1dLoH2Y+Y9J6oEMpsjCPgF4rSO2 alEZ+tCpgLTHWVRRrDByESHfYTpLxlc/XXIwJSZpKWIOB45OE/7SpyQy5cijO+yswv9p bE9w==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775380773; x=1775985573; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+nNB8fEubN3Flz4ERtVzmITto3+sp0QI30WoK7XkM+0=; b=HYXiISylvxNig4XHiAIDcqeSiTErkPs1HIAs42rEkiHkaZ6FTcWJTdCrtByaunBAVo 74qrZL8Xv8VMv1bmnz/jRmQ2zr1tthshtMm0gEsX9EPAo8moFKbpPpMqOoDuNia+FINt DyZmydp4RPojqirUf15W4bJdaauuKwBvmyfteWC8T+2FhILEbM6qExiHcy6xk8QsyyVy tmAB5X5nSmF7KU3xCzj5DjCg2XPtpNvrmTmJc3UcVVDFGebgVxkFGsM5FCS7s7+uK0fy fFT2zhe71vdU/fg5vdNcz2P4hxZmsFIEZ3vIh87Euu76gDYiDB3PEEVRJati2ACHZZPQ ZMog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775380773; x=1775985573; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+nNB8fEubN3Flz4ERtVzmITto3+sp0QI30WoK7XkM+0=; b=qZTmeFOaf9fdTJBzuH2Exex8+hlIQFsRrJYfgpELOPL8Ja6+YMuCFKxZRIyGCd71OS 8+8ZuML5ic5pDKG+rhyMRZoX4+bT00pS7an0qMzgb0IWWVliChRCFYEpiNWvIqkGf5kT KQOuG1OrMdK8BIngRLAJpGJyHTLcgT09QOc5G5ihYcLrZ9m9KICZIKtjjcC54CzTSnzb DumxUfytSOfxVuabLXBILrlrjBzMJB9sexrws046IQu8XQRkTJQc34E/k+gy6PxMMaN1 zvWnSJsEFXePLkifO2b9PBUwpsKARDIdsYNkdhVJ8BJg5HJuIWapPKMJ47T6NMFOBD/+ spoA== X-Gm-Message-State: AOJu0YwC/qRmdTnfoCCGkVdg/8FynaJmuyM9HNrN0tIqNeW2eFRZ/Mhx qScbu9GgEYStRrBy0hboE+qiuNyEui5rd3hEq7aRgsm/qM8jSUi/Y2XyVXuM1+9r61FeTHsE+IG YWxLTlfgUNEtjCs7Jw9Wg/31tzp1+WllduQ== X-Gm-Gg: AeBDieuftDjBqH0xq+P65sXbCurfoaWptqbZIfnUfmcFk1XqqliE/D4oYXyl5o26pVk /+FCZHou3w00VCKoF8JOtj2MR9/FBKDtHn96vYqxPAm7kYLfSH66ojG9X+IwrZx/1pp8uUKbRse nQGbsJ75bp6HPiK4AptqsP/r7S8tkKI8jPFPRgzJvIBqKpl83McqRlOIEFBFj7+xwXuAF8Pg7nU CpeRYU2tV46gbykHhVOxgIVDH9gf4yrxl+5lK2e3ZDyikMLjsL4Q4ulcnDU5qX4kriOCEPkYY2v d6o5d59V270C5QbRV145Th9+sKEwvNykvf+VQw== X-Received: by 2002:a05:622a:738f:b0:50b:3705:c0af with SMTP id d75a77b69052e-50d62c94a65mr106061641cf.53.1775380773001; Sun, 05 Apr 2026 02:19:33 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 5 Apr 2026 11:19:22 +0200 X-Gm-Features: AQROBzAunSan-UdDfAchY6bOKXKFRhiIB3q4QhoMu7a3RQyNMkVgbfeNX6URdfA Message-ID: Subject: Re: [PHP-DEV] [RFC] [Discussion] array_get and array_has functions To: AllenJB Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000050e43d064eb30c92" From: barel.barelon@gmail.com (Barel) --00000000000050e43d064eb30c92 Content-Type: text/plain; charset="UTF-8" On Sat, 4 Apr 2026 at 20:15, AllenJB wrote: > 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) > > Hi, Thanks for your comments, I modified the RFC to include some references and to look into escaping Regarding function names, what would be your suggestion? Cheers Carlos --00000000000050e43d064eb30c92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, 4 Apr 2026 at 20:15, AllenJB <= php.lists@allenjb.me.uk> = wrote:
On 04/04/2026 15:06, Barel wrote:
> Hi,
>
> I would like to open the discussion on my proposal to add two small, <= br> > 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_ha= s
>
> 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)


Hi,

Thanks fo= r your comments, I modified the RFC to include some references and to look = into escaping

Regarding function names, what would= be your suggestion?

Cheers

Carlos=C2=A0
--00000000000050e43d064eb30c92--