str_ends_with
webmozart/glob
Supported Versions: PHP 8
Checks if a string ends with a given substring
<?php str_ends_with
(
string $haystack
,
string $needle
):
bool