PHPStringstr_ends_with

Checks if a string ends with a given substring. (PHP 8+)

Syntax

str_ends_with(string $haystack, string $needle): bool