str_contains - Determine if a string contains a given substring

Example #1 Using the empty string ''

Result: Checking the existence of the empty string will always return true
PHP Version:

Example #2 Showing case-sensitivity

Result: The string 'lazy' was found in the string "Lazy" was not found because the case does not match
PHP Version:

Example #3 of str_contains

PHP Version:

Function str_contains:

Strings Functions

Most used PHP functions