str_ends_with

PHP 8
str_ends_with - Checks if a string ends with a given substring

Example #1 Using the empty string ''

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

Example #2 Showing case-sensitivity

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


Example #3 of str_ends_with

PHP Version:


Function str_ends_with:

Strings Functions

Most used PHP functions