substr
strpos
str_contains
最初に現れる位置を返します。
strpos(string $haystack, string $needle, int $offset = 0): int|false