Re: Replacing array_slice

From: 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:
On 17 Jul 2018, at 7:12, Levi Morrison <levim@php.net> wrote: Fixing array_slice would 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?
array_carve()? array_chisel()? Zeev
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? Enno

« previous php.internals (#102878) next »