Re: Re: Add functions array_key_first() and array_key_last()

From: Date: Tue, 12 Jun 2018 10:54:34 +0000
Subject: Re: Re: Add functions array_key_first() and array_key_last()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-102233@lists.php.net to get a copy of this message
Em ter, 12 de jun de 2018 às 07:04, Côme Chilliet <come@opensides..be> 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 Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Hi Côme, Thanks for bringing the discussion about array_first and array_last. I'm pretending to code it and propose those in the next version of PHP after PHP 7.3, with the names array_find_first and array_find_last :) Thanks, -- Gabriel Caruso

« previous php.internals (#102233) next »