array_reduce callback key
| From: | Bilge | Date: | Tue, 16 Jul 2024 23:14:41 +0000 |
| Subject: | array_reduce callback key | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-124450@lists.php.net to get a copy of this message | ||
Hi Internals,
I just ran into a case where I needed the array key in an array_reduce() callback, but I can't access it :(
So I wrote a PR to fix it: https://github.com/php/php-src/pull/14986
What do you think? Does this need an RFC?
Cheers,
Bilge