php find position of number in string code example Example: php indexof strrpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int