Re: Proposal for a new basic function: str_contains
| From: | Benjamin Morel | Date: | Mon, 17 Feb 2020 11:48:50 +0000 |
| Subject: | Re: Proposal for a new basic function: str_contains | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108645@lists.php.net to get a copy of this message | ||
>
> Thanks for the karma! An RFC has been created:
> https://wiki.php.net/rfc/str_contains
Something that's missing from the RFC is the behaviour when $needle is an
empty string:
str_contains('abc', '');
str_contains('', '');
Will these always return false?
— Benjamin