Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124452 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 qa.php.net (Postfix) with ESMTPS id 5ECB71A00B7 for ; Wed, 17 Jul 2024 00:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721176634; bh=EX/uG1oBtePiyfoOch9ozrstYPdzkOemqNOsCJ5T3Ek=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kilLUDiPWLH1wdSZsshdEoCwYRkVPy9kvaL2LJsujfhVhx0scQqqX4GC8Hof1siEb 6UwOmMpV27FAb0pGiznm+qv33qlI5ptIO0C06pXCYV3a7r5e5Bxpt4jluBzIkIcoG4 r3chNbVaVCEvU16gKsXjVNkaV8kMTpn6TmFQd3T1JfbsruP+8RVeh5vMCxDkDF66I/ +iLcZTRCcxYr78fKcSS6d+1FqeM9nDzDNlSesz8u6W4sjblSWn3ZvKecnst7/Rh0fZ sH60pB/61lWCzcVpKXBgp1WtUVLsIOLEH5seJtUZTkgdw4Gcu4Cd7A2GZ1bGsrog2W AXjF5Rx8BOCSQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E1E7F1806A6 for ; Wed, 17 Jul 2024 00:37:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, 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-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (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 ; Wed, 17 Jul 2024 00:37:13 +0000 (UTC) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-65cd720cee2so55881547b3.1 for ; Tue, 16 Jul 2024 17:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=scriptfusion-com.20230601.gappssmtp.com; s=20230601; t=1721176543; x=1721781343; 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=EX/uG1oBtePiyfoOch9ozrstYPdzkOemqNOsCJ5T3Ek=; b=V8wApawRuv/bjioXoIym1ijlqLcxVDvRxi/A9UHQgpvbbG1MPZolRK2gyqaprd4xSn H4F/3OSsQknfh9MD+7XBWNmgx+1gX5Nq0muJSb8aJWr9EqEygZ1+sSObvc3rrExNrFnG HuyTcoBK/tY2RL+C/Pt64yppaL9j4LBAXi8KE3H8oJdTKSIMrmXLNLsBo76DrrE6QAe/ wcAvfkBDX2lZscdktVvdjff+0zSks/bnLXYC597afFhIlLtd+eqDO2P09xZogSJbBy4B DGGujIn5a9mATCidmK+2S0VZ8mfUpLqVQSpl9VytoN+qnKqL5KLLQzC2kl1yN127F1b0 rIDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721176543; x=1721781343; 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=EX/uG1oBtePiyfoOch9ozrstYPdzkOemqNOsCJ5T3Ek=; b=gHHt+MyZ1XFrmhNqOgCh6kEVS2icBUeQD9P2445BHHFNbUN0qzVhBmOj4TJIBlUMJM w1NjECDGgUImXytGCP9Kv+Ik2/b7USu70Tb82k6bZKS8tKgZMITfMrX71kCRS8pkg7hW SzCKAvWWYNLQiMKLr4zcGwabBHEpbwQLQH79wX037odFyJETJ7v3lDtldT3Cz78k/gJk ZB/U0b64EPVMPQVFl3GZC/XRd6no0bHsQMHM+hcT8bDMad7uPOxK7uCWz2pZPB+Q+plb T27qUbXZKzJ5+K23jVZKO6xw85QSAIyESXFV3ozh11I5hLLuAG/q+bD+H7RBw0nod7tQ dKvw== X-Gm-Message-State: AOJu0YzrcD+VUgj1+wfgkJgSauLMDuI4nZ24fbAslX/2fyN1DU6K92x0 0Rl/O/QUFzJRRUq753v1xh29PxtbP7D3XboCxJGvo8zI6EkmRLbqh/h62Nb1KXD9S8mMTicFwzq +MeNSJgIpdZfKcQIUKKUcFGHW+tWyFeHXvoh2tw== X-Google-Smtp-Source: AGHT+IGBmW1oUY2NN+lcxbxVmUFQKLL3eJ+Vb0Cvne4Pdh4OG0dsUEd/Qv9PbBJsYwu3CX7ZAdU3HBPnel/0TQxPnlE= X-Received: by 2002:a0d:c747:0:b0:64a:4728:ef8 with SMTP id 00721157ae682-6650009f078mr2501557b3.44.1721176542891; Tue, 16 Jul 2024 17:35:42 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <5bdbffef-4954-415d-9dae-4c9bd4ba0f22@scriptfusion.com> In-Reply-To: Date: Wed, 17 Jul 2024 01:35:31 +0100 Message-ID: Subject: Re: [PHP-DEV] array_reduce callback key To: mickmackusa Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000006f769c061d66a45c" From: bilge@scriptfusion.com (Bilge) --0000000000006f769c061d66a45c Content-Type: text/plain; charset="UTF-8" On Wed, 17 Jul 2024, 01:29 mickmackusa, wrote: > It is untrue that you "can't access it"; you just need to use an array of > keys as the input array. > >> It is absolutely true and your workaround is just that; a workaround that doesn't work at all when you also need the value. Cheers, Bilge --0000000000006f769c061d66a45c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 17 Jul 2024, 01:29 mickmackusa, <mickmackusa@gmail.com> wrote:
It is untrue that you=C2= =A0"can't access it"; you just need to use an array of keys a= s the input array.
It is absolutely true and your workaround is just that; a wor= karound that doesn't work at all when you also need the value.

Cheers,
B= ilge=C2=A0
--0000000000006f769c061d66a45c--