rfc:str_contains
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:str_contains [2020/02/17 11:37] – created philippta | rfc:str_contains [2020/02/17 12:08] – philippta | ||
---|---|---|---|
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 ===== |
rfc/str_contains.txt · Last modified: 2020/08/01 23:41 by carusogabriel