On Mon, Aug 24, 2026, at 6:28 AM, سپهر محمودی wrote:
Hi everyone,
Thank you all for the valuable feedback, especially regarding the
complexities of case-insensitive searches and locale dependencies.
Based on the discussions, I have updated the RFC and simplified the
design to avoid those issues. Here are the major changes:
1. The function is now strictly case-sensitive (byte-for-byte
matching). This ensures native support for UTF-8, non-Latin characters,
and emojis without the need for complex decoding.
2. The $ignore_case parameter has been removed. The signature is now
simply: array_str_contain(array $haystack, string $needle): array
3. The implementation target is moved to ext/standard, completely
removing the ICU dependency and improving performance.
4. The target version is set to PHP 8.6.
PHP 8.6 is feature-frozen and not accepting new RFCs. The earliest it could target is PHP 8.7.
On Mon, Aug 24, 2026, at 6:28 AM, سپهر محمودی wrote:
Hi everyone,
Thank you all for the valuable feedback, especially regarding the
complexities of case-insensitive searches and locale dependencies.
Based on the discussions, I have updated the RFC and simplified the
design to avoid those issues. Here are the major changes:
The function is now strictly case-sensitive (byte-for-byte
matching). This ensures native support for UTF-8, non-Latin characters,
and emojis without the need for complex decoding.
The $ignore_case parameter has been removed. The signature is now
simply: array_str_contain(array $haystack, string $needle): array
The implementation target is moved to ext/standard, completely
removing the ICU dependency and improving performance.
The target version is set to PHP 8.6.
PHP 8.6 is feature-frozen and not accepting new RFCs. The earliest it could target is PHP 8.7.