Re: [PHP-DEV] RFC [Discussion] array_column results grouping

This is only part of a thread. view whole thread
  116565
December 4, 2021 14:21 ocramius@gmail.com (Marco Pivetta)
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 > >
  116569
December 5, 2021 10:41 marandall@php.net (Mark Randall)
On 04/12/2021 14:21, Marco Pivetta wrote:
> Gonna vote `no` on this: please design new/dedicated functions, rather than > expanding optional parameters.
I would vote no for the same reason. Mark Randall