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
Example #2 Showing case-sensitivity
Result: The string ends with 'fence'
"fence" was not found because the case does not match
Example #3 of str_ends_with