PHP文字列strpos

最初に現れる位置を返します。

構文

strpos(string $haystack, string $needle, int $offset = 0): int|false