Re: [RFC][Under Discussion] Add functions array_key_first() and array_key_last()
| From: | niel | Date: | Fri, 15 Jun 2018 15:37:20 +0000 |
| Subject: | Re: [RFC][Under Discussion] Add functions array_key_first() and array_key_last() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102279@lists.php.net to get a copy of this message | ||
On 13/06/18 20:26, Enno Woortmann wrote:
Hello internals, I've changed the status of the currently introduced RFC to add the functions array_key_first() and array_key_last() to "Under Discussion". https://wiki.php.net/rfc/array_key_first_last Regards, EnnoWhat is the behaviour if the array does not exist? From the current RFC it appears it would return null? Wouldn't it be better to return false for this situation? Niel