rfc:str_contains
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:str_contains [2020/02/17 11:37] – created philippta | rfc:str_contains [2020/03/16 09:36] – Change status to accepted philippta | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-02-17 | * Date: 2020-02-17 | ||
* Author: Philipp Tanlak, philipp.tanlak@gmail.com | * Author: Philipp Tanlak, philipp.tanlak@gmail.com | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 35: | Line 35: | ||
str_contains(" | str_contains(" | ||
str_contains(" | str_contains(" | ||
+ | |||
+ | // $needle is an empty string | ||
+ | str_contains(" | ||
+ | str_contains("", | ||
</ | </ | ||
+ | |||
+ | Regarding empty string values as $needle: | ||
+ | < | ||
===== Case-insensitivity and multibyte strings ===== | ===== Case-insensitivity and multibyte strings ===== | ||
- | In a the recent discussion in the internals mailing list, we came to the conclusion, there is no need for a multibyte variant of this function (e.g. '' | + | In a recent discussion in the internals mailing list, we came to the conclusion, there is no need for a multibyte variant of this function (e.g. '' |
- | Concerning the case-insensitivity for this function: This might be a feature for the future, as the relevance for that is much less compared to the case-sensitive function. With that in mind, the only valid variants would be str_contains/ | + | Concerning the case-insensitivity for this function: This might be a feature for the future, as the relevance for that is much less compared to the case-sensitive function. With that in mind, the only valid variants would be str_contains/ |
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 53: | Line 60: | ||
PHP 8 | PHP 8 | ||
+ | ===== Voting ===== | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Implementation ===== | ===== Implementation ===== | ||
The '' | The '' | ||
https:// | https:// |
rfc/str_contains.txt · Last modified: 2020/08/01 23:41 by carusogabriel