Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122130 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33746 invoked from network); 6 Jan 2024 00:23:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jan 2024 00:23:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1704500619; bh=fp5bMmqL9059fVOUE/lJ0cPHWedylqXhNBt3B6zUc6s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L9Npg/bVXb/UrIKnjd8L5n29ppx0w1iT32Q47XSxFTeQgs/NEG1d9VY8btV18dHn7 SHDtFb3bzFoMDwJN9I8XIMFiJXMtGpPY3CLA6TM9ooQsYIE9WOhajCmbm3hOMmxxoP VB3KfPEl7ITN4HKHmwRQTlsJsXnxj9L1ZVm0sNyMkEAf8bCPKkvdvk+dSLtQfQzOvt gXy0PSUleNVrmMBDl//X736J9jG0N/Hf00P0+2/Sf+3/3ipsuLsK2XWoNKJ9jN3Tm7 WarwjBJFJtiUm/B8ZWm5VlITc8wq/Td35+SZiZpKTDK39oreUQnbhuAQjtpVh3Bcjy Tp20f4o2FoXtA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2FEA2180059 for ; Fri, 5 Jan 2024 16:23:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 ; Fri, 5 Jan 2024 16:23:38 -0800 (PST) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5efb0e180f0so1412827b3.1 for ; Fri, 05 Jan 2024 16:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704500586; x=1705105386; 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=fp5bMmqL9059fVOUE/lJ0cPHWedylqXhNBt3B6zUc6s=; b=jwg0JEkvS9qXFRJfayABupZ3N8kz3iecNFcyv9ZqLgnpTqCmwp2OZYTN4xWfelTn2n qBt5u8bgTEqECYdj6cQlAViUB2OlFxeOge4mE/GeEn7LqkmVuHrJzwT1XsnWpxEIeNGU S/ffgeLTZxBpa6ZQc4Ez37eJVqZP2c4utdtHQI/Z9zD4yHS4uHfcGTC9SPgCkYCQ3012 WL9d6ClspA5FL+DJu1KQ7XQ1hhp3Ta1bGpsGoWpesdS/IGcbnlNibAggHyTTrar7w4Kq uaabzCCruKD3Iq59uGxQBYcZSCNxfxDRyTVLgWhPpekputOKUw0JU0be6MMFBEBcmb3A NSqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704500586; x=1705105386; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fp5bMmqL9059fVOUE/lJ0cPHWedylqXhNBt3B6zUc6s=; b=W9R0dXTU+OQ7qFnUQm3OrYmD5Kw3RzhWjRxeN7TyTFhAwJ7lULFvr81C9nuzW02AcF EHosFKtBZfGOTz8GXFwWBimgPlXs2bPyEJqOuPSBtixvOjER2zmvWSVQ2gfwLuR08kO8 HyALGrGj3TjChU3QJrs16NTK1yHju7SRiur9Fk8gQpx98OnziJv9XnZY2l98neUR6yIi DmibmbBf4X+jijokaCh7c6kO90vzGKlyniKubWbyaoO3NoRIfDToDMaTH4wIXNP7O1KA y8CxgpvlMeqBOz5amb5gAIorOMzVpH7Y587XluAF/NajI37y9i9ngYkcRBp4cOVdZ6Q7 sViA== X-Gm-Message-State: AOJu0Yxn02tA3Ks9EAXCd+T/e3H9CrBtQ8GEhX0QBw1ZHRXFAZf2syVP 3xaAgPsjVOznfxF08E3LRKmEXC9OQFM8uivZYlw= X-Google-Smtp-Source: AGHT+IFfRFpzTIQqkxzBmEjHaVgTDTaeeChCeQUK9O99XuKF/NkgWB5MUWpo9tBtDQRmEiBdlhkj5sIEpG/lN999BqU= X-Received: by 2002:a0d:dc84:0:b0:5f1:2dcc:fe5e with SMTP id f126-20020a0ddc84000000b005f12dccfe5emr263673ywe.46.1704500585820; Fri, 05 Jan 2024 16:23:05 -0800 (PST) MIME-Version: 1.0 References: <4B81D2EE-0A84-4443-8F32-5D27AE43954C@gmail.com> <56eeb603-418c-4455-81c7-9bfbd160d6e2@app.fastmail.com> In-Reply-To: <56eeb603-418c-4455-81c7-9bfbd160d6e2@app.fastmail.com> Date: Sat, 6 Jan 2024 01:22:54 +0100 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="000000000000eff50a060e3bf7ab" Subject: Re: Fwd: [PHP-DEV] clarify the destructuring list() concept From: glash.gnome@gmail.com (=?UTF-8?B?TcO2bsO0bWUgRXBzb24=?=) --000000000000eff50a060e3bf7ab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for your reply. Forgive me for a few mistakes. I'm new to Gmail... Is this line "top-post" ? Le sam. 6 janv. 2024 =C3=A0 00:48, Larry Garfield = a =C3=A9crit : > What you can do, as Rowan noted, is this: > > https://3v4l.org/cEmcC > > I understood your code. It is interesting when you do not know the order of the keys. https://3v4l.org/O29NL I would have preferred to be able to write: https://3v4l.org/o5jkH In the same way I do it here: https://3v4l.org/I4V3W I don't see any concrete case where using a variable as a key can be useful https://3v4l.org/WR54k For me it was implemented like this, because it's easier. In reality, I'm not asking "how" it actually works, but how it should work. --000000000000eff50a060e3bf7ab--