strpos

strpos

(PHP 4, PHP 5, PHP 7)

strposFind the position of the first occurrence of a substring in a string

Description

mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )

Find the numeric position of the first occurrence of needle in the haystack string.

Parameters

haystack

The string to search in.

needle

登录查看完整内容