Re: [RFC][Under Discussion] Add functionsarray_key_first()and array_key_last()
| From: | Christoph M. Becker | Date: | Thu, 28 Jun 2018 13:21:36 +0000 |
| Subject: | Re: [RFC][Under Discussion] Add functionsarray_key_first()and array_key_last() | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102514@lists.php.net to get a copy of this message | ||
On 28.06.2018 at 15:02, Woortmann, Enno wrote:
> Are there other opinions concerning this topic?
In my opinion, there are already too many array functions, so I'm not
fond of adding more to it. That said, I see the usefulness of
array_key_first() and array_key_last(), but not of array_value_first()
and array_value_last(), since these could easily be implemented on top
of the key functions in userland. Also, it would be possible to
implement the suggested array_first() and array_last() on top of the key
functions, with whatever signature the user desires.
Anyhow, thanks for the RFC!
--
Christoph M. Becker