PHPStringstrpos

Find the position of the first occurrence of a substring in a string.

Syntax

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