Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123436 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 8080D1A009C for ; Mon, 27 May 2024 16:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1716828744; bh=5b488AKZMx76E9gH/dQ87Bo6H1Tff64a5oamYGpprZo=; h=References:In-Reply-To:From:Date:Subject:To:From; b=fR+/Bz4oXv0AyQTaRviiHHOjYCTIE565p+BxnNCtBy9gXeGV0eXaznJ8UabCLzgrM CpqmvMo4UFR6SwailgOcwUxxOr+LaWZNKOmHlhhazSTgxQIgISFTzjkhWhfyYQvLaZ 0W+aoX+yeEv6Oej0bXtf1ADsfimaQgavtWJBnUuEKY+PD4ug4QzavuZpPkJJDfhQ+N cIrW4hN/fE61T0UngcLr1spUP2toz7gddw9EJDFlUDmdFinQ/Ohplzs6+0QntgCJeA 3cYFZ+PthjjwdhR/VTApriAs4Comx5QJ3EQU6Ea+6kLQCn8GOjiyWHBTSzRmgSWCwQ lzbIbGEc76GHA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DC07B180056 for ; Mon, 27 May 2024 16:52:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_IMAGE_ONLY_28,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_REMOTE_IMAGE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 27 May 2024 16:52:22 +0000 (UTC) Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2e95a74d51fso53988181fa.2 for ; Mon, 27 May 2024 09:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716828681; x=1717433481; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=5b488AKZMx76E9gH/dQ87Bo6H1Tff64a5oamYGpprZo=; b=fTHAzNo5bdeEkekdNJty6WfhvXH9rwo/QmPlYYTIEI/FfazDWP3I44qhjZpDcp4CS8 JIXYgi2gHv5RRcuHUZBNHFxnyelrCrop1Z04tN4sgMV/A468x2iFd2wxPH0RG6I6BJ0t XSI1oeR+HHRJ59gAQRAVNwKP8AgKf18jAN+kNMRbIVwv6dq4SWVlVMDd6YMniFzS4Kwj pcEB0g8Bc0MlpfrwMOV3tWhFQpVINrXjtMHToeKmi0U3ZinpuqKQ+5RoyrtvgRIu5n0d xo4Y2q3nc07MT6S7lq4yJJ4cwm++z1a1QxJcshsyF80mXQskti7BJRdBczMtsPcAPDX8 6WvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716828681; x=1717433481; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5b488AKZMx76E9gH/dQ87Bo6H1Tff64a5oamYGpprZo=; b=c9BNGbv/JG5H0UR41JlDjBwTbdP5liyEpedAXtfrZfLwRqI3ErSVf01Uq8TfTlhMLF AsiJ1SNOvJgGnUYbsTE8Hf/Sjn8cGR3e1kvOvTISJ1xja0KunzOCe+hLjLaKujDG3PrV MeaM45O2zG+cdY5GmZ+qmRenNOXmystmNI3ZPW+6Zqy+2u/+HDKW9MA4yQVVUQgDn9YJ YmPS+BQ9MCUObi5lLv9Ceq5bEX+ABjLTOUU4mNuu3BPT9YSN/oopPwzP0j/uRkWgYS/9 8xGWvyfj4RLoktYL+n4V1LFATyi3YsWcdlAsbwXG0Yb1sd8gt9xVEiv+X+3EA5M6xPhC uOaw== X-Gm-Message-State: AOJu0YxcA0ysM2CtytULziU2cjL06LnBMrCfYOnhlxgIpAgUNSWOAKGx GV5499iSvSSNaNYKnAUDzv0tw9l+koiN3OR4Sh2hzZK5FgnPcXhL/9qh/1BIGe4O6X5sND2MzTQ wxuF15zG4d4GlsvXWMIZG8/8se6Y9EqcQ/hc= X-Google-Smtp-Source: AGHT+IECcJapTDTaFjzc2plWqtgSoqzFaAv0HRIiBnzl0d+CUcXRR9F5hDTnDWgEWYUpWyDt1uDHSQgv+/Yk+o2Hstk= X-Received: by 2002:a2e:b784:0:b0:2e0:6313:fe3a with SMTP id 38308e7fff4ca-2e95b256875mr82067761fa.35.1716828680985; Mon, 27 May 2024 09:51:20 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 27 May 2024 12:51:09 -0400 Message-ID: Subject: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000aba68c061972532c" From: edeoleo@gmail.com (Elminson De Oleo Baez) --000000000000aba68c061972532c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear PHP Internals Team, I hope this message finds you well. I am writing to request RFC karma for my wiki account in order to propose a new RFC. My proposal involves the introduction of two new methods, any_empty and all_empty, for working with arrays. These methods are designed to provide boolean outputs indicating whether any of the elements in an array are empty, or if all elements are empty, respectively. I believe these methods will be valuable additions to PHP=E2=80=99s array manipulation functionalit= ies. 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. These methods aim to simplify common array checks and improve code readability and efficiency. I look forward to your approval and any guidance you can provide on moving forward with this proposal. Thank you for your time and consideration. image.png Best regards, Elminson PHP Wiki Username: elminson --000000000000aba68c061972532c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear PHP Interna= ls Team,

I hope this message finds you well. I am writing to request= RFC karma for my wiki account in order to propose a new RFC.

My pro= posal involves the introduction of two new methods, any_empty and all_empty= , for working with arrays. These methods are designed to provide boolean ou= tputs indicating whether any of the elements in an array are empty, or if a= ll elements are empty, respectively. I believe these methods will be valuab= le additions to PHP=E2=80=99s array manipulation functionalities.

Be= low is a brief overview of the proposed methods:

any_empty(array $ar= ray): bool - This method will return true if any element in the provided ar= ray is empty, and false otherwise.
all_empty(array $array): bool - This = method will return true if all elements in the provided array are empty, an= d false otherwise.
These methods aim to simplify common array checks and= improve code readability and efficiency.

I look forward to your app= roval and any guidance you can provide on moving forward with this proposal= .

Thank you for your time and consideration.




<= div>Best regards,

Elminson
PHP Wiki Username: elminson


--000000000000aba68c061972532c--