Re: Proposal: Adding an ARRAY_FILTER_REINDEX flag to array_values
| From: | Peter Bowyer | Date: | Mon, 20 Sep 2021 08:43:23 +0000 |
| Subject: | Re: Proposal: Adding an ARRAY_FILTER_REINDEX flag to array_values | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116103@lists.php.net to get a copy of this message | ||
On Sun, 19 Sept 2021 at 14:12, tyson andre <tysonandre775@hotmail.com>
wrote:
> What are your thoughts on adding
ARRAY_FILTER_REINDEX, to
> ignore the
> original int/string keys and replace them with 0, 1, 2, ...
>
If it's measurably faster/more memory efficient than
array_values(array_filter(...)) across a range of array sizes, I'm strongly
in favour as I write this a lot.
Peter