Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116565 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 8445 invoked from network); 4 Dec 2021 13:22:24 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Dec 2021 13:22:24 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 534171804A8 for ; Sat, 4 Dec 2021 06:21:52 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, 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: Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 06:21:51 -0800 (PST) Received: by mail-oi1-f176.google.com with SMTP id 7so11863102oip.12 for ; Sat, 04 Dec 2021 06:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WKtnSmCZOrbi+7q7e1jQKkcZXQMfBidTP5pgqjcwyOc=; b=G78/V+Utxqr93dnOz3m5O5l/zlm84EdZVYLZZZW/np71V/uJOVjlWsC8o76/pyyJDJ mPmeH+uHLh2HEl/p+VVjsfDbJZyfxAOVSnNX/ZFWT0h9b7+MB4jAJ5vTLRAclSwDa0LO 4/P5rJodMVLEyD/LTrU7fbGkxuDO8OkrQN4wg/8Q0Ye3gxUdMbphNzNy/R9yonWK13L8 HoVqCYf3A+4ND2KaBDGcUcyxlJCt1qxfH5hK1FlcdvCeVjDTUb3qUmQ8AFe4uVHRHZYW n3JAMaSGpz8gATImQGl71hcQk0PL9n6przgRbebm+VH5rwzODPHGLQ6pS6+hhteJTCV3 3KnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WKtnSmCZOrbi+7q7e1jQKkcZXQMfBidTP5pgqjcwyOc=; b=r54mOkHgiRRnLFcqEYUbqyd1hyAbaNgI58xaqYKDLLR2V2auwvqGXP8FuKNxvqKtqQ IgdalfEUaQEKibgNOWVbmxQTmK74npSedd8naXWdnURHfeHginvb9CV7IveM7aW8/Bkm PTNd5D7MHxsEORwkc6JI9VMXHGmtilziWys43uuNngQGtrved/z85b7xF84r6BT/pz/E Uq3JQB8LLolehMlbmiCGBQz61FwmDEQqdM6699A2mu28YHXJm4zTb+V5MkfrE+jEFI5J pPAI17fQFvkY9nnRWNPKgKOTfGT14StW5Kkib54eQLG5xmoSfoZuQOGnAteDBs89C72p bMTg== X-Gm-Message-State: AOAM5338bk8Sb1lXmeYTOfcSOcz5EDmOUa/5Voe/x/yyMo1WqjhVinPx amDxQ9Vw+i0Tx7PU3XLasrfCJl1oigsjW4L10Mk= X-Google-Smtp-Source: ABdhPJy5Ec6o/EFMjyxrCYBBHMp/0lvRP+XtYqfw84vpqoI+WzgI6dgt5Ri8KdYC07S/EGtunT6aMERmg50si9FniaE= X-Received: by 2002:a05:6808:68f:: with SMTP id k15mr14740421oig.5.1638627710900; Sat, 04 Dec 2021 06:21:50 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 4 Dec 2021 15:21:38 +0100 Message-ID: To: Hassan Ahmed <7snovic@gmail.com> Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000a09d7405d252bee2" Subject: Re: [PHP-DEV] RFC [Discussion] array_column results grouping From: ocramius@gmail.com (Marco Pivetta) --000000000000a09d7405d252bee2 Content-Type: text/plain; charset="UTF-8" Gonna vote `no` on this: please design new/dedicated functions, rather than expanding optional parameters. On Sat, 4 Dec 2021, 10:57 Hassan Ahmed, <7snovic@gmail.com> wrote: > 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. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000a09d7405d252bee2--