Re: [RFC] [Discussion] array_str_contains() for PHP 8.7
| From: | سپهر محمودی | Date: | Mon, 31 Aug 2026 16:22:16 +0000 |
| Subject: | Re: [RFC] [Discussion] array_str_contains() for PHP 8.7 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132407@lists.php.net to get a copy of this message | ||
در تاریخ دوشنبه ۳۱ اوت ۲۰۲۶، ۱۸:۴۲ Tim Düsterhus
<tim@bastelstu.be> نوشت:
> Hi
>
> On 2026-08-30 16:19, سپهر محمودی wrote:
> > You can check out the RFC and implementation details here:
> > - RFC: https://wiki.php.net/rfc/array_str_contains
> > - Pull Request: https://github.com/php/php-src/pull/23512
>
> Don’t forget to add your RFC to the overview at
> https://wiki.php.net/rfc.
>
> As for the proposal itself, I agree with the existing replies that I
> don’t consider this to be a useful addition to PHP’s stdlib. See also my
> reply in the discussion thread about whether or not RFCs should include
> polyfills: https://news-web.php.net/php.internals/132402
>
> Best regards
> Tim Düsterhus
>
--------
Hi Tim,
Thanks for the reminder! I will add the RFC to the overview page shortly.
I also appreciate your feedback and insight regarding standard library
additions. I understand the perspective of keeping the stdlib concise and
relying on composable primitives like array_any().
Best regards,
Sepehr