php-string.php
PHP string polyfill helpers.
Tags
Table of Contents
Functions
- str_contains() : bool
 - Performs a case-sensitive check indicating if needle is contained in haystack.
 
Functions
str_contains()
Performs a case-sensitive check indicating if needle is contained in haystack.
    
                    str_contains(string $haystack, string $needle) : bool
    
        Parameters
- $haystack : string
 - 
                    
The string to search in.
 - $needle : string
 - 
                    
The substring to search for in the haystack.
 
Tags
Return values
bool —Returns true if needle is in haystack, false otherwise.