PHP文字列str_ends_with
str_starts_with

str_ends_with文字列

str_replace

文字列が指定したサフィックスで終わるか確認します。(PHP 8+)

構文

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