On 04/01/2016 17:05, Andrea Faulds wrote:
How often would such functions be useful? Perhaps they fill a gap, but
I'm not sure if it's one that needs filling. array_key_first and
array_key_last can already be accomplished in two or so lines of code
(four if you make a function), and array_key_in
Hi Andrea,
> On Jan 4, 2016, at 12:05, Andrea Faulds wrote:
>
> Hi John,
>
> John Bafford wrote:
>> Happy New Year, everyone!
>>
>> I’d like to present the first new PHP RFC for this year, a proposal to add
>> functions to easily get the first, last, or an arbitrary key (and value) by
>> ind
Hi John,
John Bafford wrote:
Happy New Year, everyone!
I’d like to present the first new PHP RFC for this year, a proposal to add
functions to easily get the first, last, or an arbitrary key (and value) by
index from an array, taking advantage of PHP’s property that arrays are ordered
maps.