Re: Replacing array_slice
| From: | Enno Woortmann | Date: | Tue, 17 Jul 2018 06:23:53 +0000 |
| Subject: | Re: Replacing array_slice | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102878@lists.php.net to get a copy of this message | ||
Am 17.07.2018 um 07:35 schrieb Zeev Suraski:
If keeping it together in a single function maybe array_extract() will do the job. Or do you think it's to close to the naming of extract() and may lead to confusion? EnnoOn 17 Jul 2018, at 7:12, Levi Morrison <levim@php.net> wrote: Fixingarray_carve()? array_chisel()? Zeevarray_slicewould probably do more harm than good at this stage. Instead I would like to provide an alternative function that does not have all this baggage, and will have decent performance much of the time. The best ideas I have for names are not that great: -array_real_slice? -array_slice2?