mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
PHP 8.0 introduced a new function: `str_contains()`. It performs a case-sensitive check indicating if given substring (needle) is contained in the string to search in (haystack). This polyfill makes this function available for use in Core. Ref: * PHP RFC https://wiki.php.net/rfc/str_contains * PHP manual https://www.php.net/manual/en/function.str-contains.php Props ayeshrajans, costdev, desrosj, hellofromTonya, knutsp, pbearne. Fixes #49652. git-svn-id: https://develop.svn.wordpress.org/trunk@52039 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| arrayKeyFirst.php | ||
| arrayKeyLast.php | ||
| hashHmac.php | ||
| isCountable.php | ||
| isIterable.php | ||
| jsonEncodeDecode.php | ||
| mbStrlen.php | ||
| mbSubstr.php | ||
| strContains.php | ||