Adding in a case-insensitive version of str_contains

From: Date: Thu, 29 May 2025 20:29:18 +0000
Subject: Adding in a case-insensitive version of str_contains
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
As a PHP developer of 20 years I'm somewhat accustomed to adding "i" into
the function name when I'm after a case-insensitive version.

Therefore, I found it a bit odd I couldn't do it with the new
"str_contains" function, so have built a basic ci version @
https://github.com/php/php-src/pull/18705

I appreciate that there may be a bit of negative reaction about adding such
a basic function that can so easily be written in user-land. But for me, as
an average PHP coder, I think it's useful to try and fill in gaps which can
cause head-scratching.

Thanks,
Adam


Thread (10 messages)

« previous php.internals (#127504) next »