Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117158 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47686 invoked from network); 27 Feb 2022 21:56:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Feb 2022 21:56:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 54C411804AC for ; Sun, 27 Feb 2022 15:17:21 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8412 83.65.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail02.x-net.at (mail02.x-net.at [83.65.141.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 27 Feb 2022 15:17:20 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id 9F2E0380073; Mon, 28 Feb 2022 00:17:18 +0100 (CET) Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id KnyBqK5_ZJo9; Mon, 28 Feb 2022 00:17:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail02.x-net.at (Postfix) with ESMTP id 5C1F0380400; Mon, 28 Feb 2022 00:17:18 +0100 (CET) X-Virus-Scanned: amavisd-new at x-t.at Received: from mail02.x-net.at ([127.0.0.1]) by localhost (mail02.x-net.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lEThnIU5sgrd; Mon, 28 Feb 2022 00:17:18 +0100 (CET) Received: from [127.0.0.1] (178.115.62.156.wireless.dyn.drei.com [178.115.62.156]) by mail02.x-net.at (Postfix) with ESMTPSA id 09C58380073; Mon, 28 Feb 2022 00:17:17 +0100 (CET) Date: Mon, 28 Feb 2022 00:17:13 +0100 To: Claude Pache , Robert Landers CC: internals User-Agent: K-9 Mail for Android In-Reply-To: References: <621a56dd.1c69fb81.67b1.242aSMTPIN_ADDED_MISSING@mx.google.com> <2CEDDAE8-76CF-4380-9E5A-0841EDD0B0C4@dafert.at> Message-ID: <8B0DF152-A350-4C5D-A3D4-31812A34F5B5@dafert.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_Proposal_for_RFC_to_remove_undef?= =?US-ASCII?Q?ined_array_index_warning_when_used_ina_ternary?= From: mel@dafert.at (Mel Dafert) >Hi, > >In PHP, you can write `$array['a']['b']['c'] ?? 'default';`=2E It works w= hen either null or inexistant index is encountered at any depth of the expr= ession=2E > >=E2=80=94Claude You're right, I did not know that=2E Thank you=2E That basically replaces the need for my proposal, then=2E Regards, Mel