str_starts_with

PHP 8
str_starts_with - Checks if a string starts with a given substring

Example #1 Using the empty string ''

Result: All strings start with the empty string
PHP Version:

Example #2 Showing case-sensitivity

Result: The string starts with 'The' "the" was not found because the case does not match
PHP Version:


Example #3 of str_starts_with

PHP Version:


Function str_starts_with:

Strings Functions

Most used PHP functions