Re: [PHP-DEV] Option for array_column() to preserve keys.

2021-09-08 Thread Andreas Hennings
$source['a0']['b01'] = 5;On Wed, 8 Sept 2021 at 16:48, Andreas Hennings wrote: > > On Wed, 8 Sept 2021 at 16:10, Andreas Hennings wrote: > > > > Thanks for the feedback so far! > > > > On Wed, 8 Sept 2021 at 10:13, Marco Pivetta wrote: > > > > > > Heyo, > > > > > > On Wed, 8 Sep 2021, 02:19 Andr

Re: [PHP-DEV] Option for array_column() to preserve keys.

2021-09-08 Thread Andreas Hennings
On Wed, 8 Sept 2021 at 16:10, Andreas Hennings wrote: > > Thanks for the feedback so far! > > On Wed, 8 Sept 2021 at 10:13, Marco Pivetta wrote: > > > > Heyo, > > > > On Wed, 8 Sep 2021, 02:19 Andreas Hennings, wrote: > >> > >> Hello internals, > >> > >> The function array_column() would be much

Re: [PHP-DEV] Option for array_column() to preserve keys.

2021-09-08 Thread Andreas Hennings
Thanks for the feedback so far! On Wed, 8 Sept 2021 at 10:13, Marco Pivetta wrote: > > Heyo, > > On Wed, 8 Sep 2021, 02:19 Andreas Hennings, wrote: >> >> Hello internals, >> >> The function array_column() would be much more useful if there was an >> option to preserve the original array keys. >>

Re: [PHP-DEV] Option for array_column() to preserve keys.

2021-09-08 Thread Guilliam Xavier
Yes please! This has been requested multiple times, for instance: - https://bugs.php.net/bug.php?id=64493 - https://bugs.php.net/bug.php?id=66435 - https://bugs.php.net/bug.php?id=73735 Regards, -- Guilliam Xavier

Re: [PHP-DEV] Option for array_column() to preserve keys.

2021-09-08 Thread Marco Pivetta
Heyo, On Wed, 8 Sep 2021, 02:19 Andreas Hennings, wrote: > Hello internals, > > The function array_column() would be much more useful if there was an > option to preserve the original array keys. > I can create an RFC, but I think it is better to first discuss the options. > New function, pleas