Re: Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods
| From: | Bilge | Date: | Tue, 11 Jun 2024 20:42:49 +0000 |
| Subject: | Re: Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123587@lists.php.net to get a copy of this message | ||
On 04/06/2024 21:18, Rowan Tommins [IMSoP] wrote:
On 27/05/2024 17:56, Bilge wrote:Hi all, I would like to retract my original reply and apologise to everyone. Originally I thought the OP was submitting an identical proposal, but he was not, and that is on me for not reading properly. In any case, you're right I should have been more courteous. Hope there are no hard feelings. Kind regards, BilgeOn 27/05/2024 17:51, Elminson De Oleo Baez wrote:Please try to be polite, and remember that just because something seems obvious to you, that doesn't mean everyone else in the world already knows it. How about we re-word with that in mind: Hi Elminson, As it happens, there has been a recent proposal which includes "array_any" and "array_all" functions, which could be combined with the existing "empty" function to achieve these results. You can find the RFC here: https://wiki.php.net/rfc/array_find and the mailing list discussion here: https://externals.io/message/123015 Regards, -- Rowan Tommins [IMSoP]Below is a brief overview of the proposed methods: any_empty(array $array): bool - This method will return true if any element in the provided array is empty, and false otherwise. all_empty(array $array): bool - This method will return true if all elements in the provided array are empty, and false otherwise.Dude... what? https://wiki.php.net/rfc/array_find