string last index php code example Example: php indexof strrpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) : int