Re: RFC [Discussion] array_column results grouping

From: Date: Sat, 04 Dec 2021 14:21:38 +0000
Subject: Re: RFC [Discussion] array_column results grouping
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-116565@lists.php.net to get a copy of this message
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 > >

« previous php.internals (#116565) next »