Re: [PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-12 Thread Gabriel Caruso
Em ter, 12 de jun de 2018 às 07:04, Côme Chilliet escreveu: > Hello, > > Shouldn’t we also add array_first and array_last for consistency? > reset and end may be used for this but they modify the array state and > cannot be called on function results. > > Côme > > -- > PHP Internals - PHP Runtime

Re: [PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-12 Thread Côme Chilliet
Hello, Shouldn’t we also add array_first and array_last for consistency? reset and end may be used for this but they modify the array state and cannot be called on function results. Côme -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-11 Thread Enno Woortmann
Hi Christoph, On 11.06.2018 at 15:21, Christoph M. Becker wrote: You should have RFC karma now. Thanks for the RFC karma, everything worked fine. I've created a new RFC for this topic located at https://wiki.php.net/rfc/array_key_first_last Thanks, Enno --- Diese E-Mail wurde von Avast A

[PHP-DEV] Re: Add functions array_key_first() and array_key_last()

2018-06-11 Thread Christoph M. Becker
Hi Enno! On 11.06.2018 at 14:15, Enno Woortmann wrote: > For the next steps I'd like to create a new RFC as the functional scope > differs to the existing RFC. Therefor I request a PHP.net wiki account > (wiki username: wol-soft) to create a new RFC. You should have RFC karma now. -- Christoph