Re: [PHP-DEV] [RFC] [Discussion] array_first() and array_last()

2025-04-08 Thread Daikaras
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 b

Re: [PHP-DEV] RFC [Discussion]: array_find PHP internals

2024-05-28 Thread Daikaras
On 2024.04.07 17:20, Joshua Rüsweg wrote: Hi I have created an RFC to add the function array_find which returns the first element for which a predicate callback returns true. This is a function which I missed often. Furthermore this type of function is implemented with other programming langua

Re: [PHP-DEV] [RFC] Transform exit() from a language construct into a standard function PHP internals

2024-05-28 Thread Daikaras
On 2024.05.08 16:40, Gina P. Banyard wrote: Hello Internals, I would like to formally propose my idea for exit() as a function brought up to the list on 2024-02-24 [1] with the following RFC: https://wiki.php.net/rfc/exit-as-function There have been some slight tweaks to the implementation, na