str_starts_with
str_ends_with
str_replace
Checks if a string ends with a given substring. (PHP 8+)
str_ends_with(string $haystack, string $needle): bool