> Le 5 avr. 2025 à 17:51, Niels Dossche <dossche.ni...@gmail.com> a écrit : > > Hi internals > > I'm opening the discussion for the RFC "array_first() and array_last()". > https://wiki.php.net/rfc/array_first_last > > Kind regards > Niels Hi Niels, It is reasonable. I have a userland implementation of that in my codebase since long ago. You missed the following point when discussing the behaviour for empty array: * Consistent with `array_shift()` and `array_pop()`, which are also about retrieving the first, respectively the last element of an array. —Claude
- [PHP-DEV] [RFC] [Discussion] array_first() and array_las... Niels Dossche
- Re: [PHP-DEV] [RFC] [Discussion] array_first() and ... Claude Pache
- Re: [PHP-DEV] [RFC] [Discussion] array_first() ... Niels Dossche
- Re: [PHP-DEV] [RFC] [Discussion] array_first() and ... Juris Evertovskis
- Re: [PHP-DEV] [RFC] [Discussion] array_first() ... Bilge
- Re: [PHP-DEV] [RFC] [Discussion] array_firs... Ayesh Karunaratne
- Re: [PHP-DEV] [RFC] [Discussion] array_... Larry Garfield
- Re: [PHP-DEV] [RFC] [Discussion] array_... Bilge
- Re: [PHP-DEV] [RFC] [Discussion] array_... Andreas Hennings
- Re: [PHP-DEV] [RFC] [Discussion] array_first() ... Niels Dossche
- Re: [PHP-DEV] [RFC] [Discussion] array_first() and ... Daikaras