RFC [Discussion] array_column results grouping
| From: | Hassan Ahmed | Date: | Sat, 04 Dec 2021 09:57:13 +0000 |
| Subject: | RFC [Discussion] array_column results grouping | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-116564@lists.php.net to get a copy of this message | ||
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.