Re: [RFC] [Discussion] array_first() and array_last()
| From: | Daikaras | Date: | Tue, 08 Apr 2025 08:53:07 +0000 |
| Subject: | Re: [RFC] [Discussion] array_first() and array_last() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127071@lists.php.net to get a copy of this message | ||
On 4/5/2025 6:51 PM, Niels Dossche wrote:
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-1 because returning
null for empty arrays is still wrong. Whatever similar behavior exists should be corrected to throw ValueError in the future. Just my 2c.