Re: Proposal for a new basic function: str_contains
| From: | Nikita Popov | Date: | Mon, 17 Feb 2020 09:52:47 +0000 |
| Subject: | Re: Proposal for a new basic function: str_contains | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108641@lists.php.net to get a copy of this message | ||
On Mon, Feb 17, 2020 at 10:03 AM Philipp Tanlak <philipp.tanlak@gmail.com>
wrote:
> Now that we've talked about the pros and cons of case-insensitivity and
> multibyte variants, I'm still unsure what your opinions on those are.
>
> * Should we include a case-insensitive variant (str_icontains) ?
> * Should we include multibyte variants (mb_str_icontains) ?
>
Especially considering how past proposals in this general area went, I'd
suggest to start small (just str_contains), and then go from there.
(Personally I'd like to have the trifecta of str_contains, str_starts_with
and str_ends_with in one go, but given that a proposal for the latter two
recently failed... though the main contention there seems to be the
case-insensitive part, not the functions themselves.)
Slightly off-topic:
> Also, since this is my first time I'm trying to contribute: How can we
> proceed to write an RFC?
> I've read in the howto, that I need to earn RFC karma in order to create a
> new RFC page. How can I request that?
> My wiki.php.net username is: philippta and my email is
> philipp.tanlak@gmail.com
I've granted you RFC karma on the wiki, so you should be able to add a new
page under wiki.php.net/rfcs now.
Regards,
Nikita