Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116564 Return-Path: <7snovic@gmail.com> Delivered-To: mailing list internals@lists.php.net Received: (qmail 85482 invoked from network); 4 Dec 2021 08:58:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Dec 2021 08:58:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C670F1801FD for ; Sat, 4 Dec 2021 01:57:25 -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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: <7snovic@gmail.com> Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (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 ; Sat, 4 Dec 2021 01:57:25 -0800 (PST) Received: by mail-io1-f50.google.com with SMTP id m9so6969005iop.0 for ; Sat, 04 Dec 2021 01:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=EJwF86nahFl+F03aD6ESy1Dl13Q0v32iZseFRC/edUU=; b=LLo+Gr2XBgB5EFHpzai+Jfh1JK2E9jo47umtOYv+42eX24hIegCg1Kq3Kzbvt3LSV+ RQ24M9faHqszYfuioHmkPNZQ835NRKjJIrb+Tor5xFtSCzlFtTbuXaPgCOs9YspdXcKp Swsnah0bG2My5gIvAzPhXlJYUOntO9s2+TbOH/8OW1iNaJC1oTJUZ3n/CU0RCOLz2Hw2 qGrR9vHPHlwZqyxnV49tqdEhyQvJJCrfsLbuulfzxvZXuRz2liXLD2dfBQCm+/NAs+tz uM8oZTSNdh54SJ1r4agWCWrTYzy5xHU3e7O0t9hcmvC7Bk4pHUQUsnavhpHuHkv6zI8q 7g9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EJwF86nahFl+F03aD6ESy1Dl13Q0v32iZseFRC/edUU=; b=6etx5P6hieqWuDuTcvm8DTJ7WkLLwfo8Dcy4fhLt7fdXSsIE5gp44FX/glDdMTqpYQ ex4bVWEZ+nSiCWEmYiV8j+4DA2JYFT2Bg8vf2I8aMU51UdfJ77tQ+8rcW5IRPFSEEHBQ ax21hpD2kaWIIRi/550Yf2TuVxdAtMcsV8aMNkF8ZR3aKVwk5D4UGCGDW3Z8eeDcjM3D 315v5iPzNOY39XPGMa9JeW8vBv7NnJ4cXPNLvAVVyDb4Y1g76fT9+SedCND3A84UOGf3 OgX9ghdP8LkbqWiG3Dj8jQQ8Q/j2vO+kYgV5a1JU8Dhj3Sw2LrwQj7RUiqn+ARP04oKp XmiA== X-Gm-Message-State: AOAM53131FzItrgLAwz0V7W4+KTsp0zT+oa1SnXRT99xc/DbgCqRQMg6 rEX49tSclduh/xMnGPmDOrRq69EAOdO/qlXAidNts5jXJJk= X-Google-Smtp-Source: ABdhPJw/90PQu8VhSKCjNqnRp1HCj7JQHCi9ZwuKsnFJOXZ/rnnD0P0ZrupysqQ5XvLG7lX0hB8l1x/qQFRanKvTMjo= X-Received: by 2002:a05:6602:2e90:: with SMTP id m16mr24638008iow.92.1638611844534; Sat, 04 Dec 2021 01:57:24 -0800 (PST) MIME-Version: 1.0 Date: Sat, 4 Dec 2021 11:57:13 +0200 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: RFC [Discussion] array_column results grouping From: 7snovic@gmail.com (Hassan Ahmed) Hello, this is a proposal to upgrade the functionality of `array_column` to return an indexed array for all of the matched data instead of a single result. the RFC had been created here https://wiki.php.net/rfc/array_column_results_grouping and the PR is in here https://github.com/php/php-src/pull/7698. However, I am not sure, if we need to add a fourth parameter to the function to change its behavior or we can add it as a new function, something like `array_column_group` or any other name. Regards, Hassan.