PHP文字列str_starts_with
str_contains

str_starts_with文字列

str_ends_with

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

構文

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