strpos

Definition

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

Description

Returns the numeric position of the first occurrence of needle in the haystack string. Unlike the strrpos() before PHP 5, this function can take a full string as the needle parameter and the entire string will be used.

[More at php.net]

Parameters




loading


Share/bookmark - strpos


Global comments