intl Functions
PHP Manual

grapheme_strrpos

(No version information available, might be only in CVS)

grapheme_strrpos — Find position (in grapheme units) of last occurrence of a string

Description

Procedural style

int grapheme_strrpos ( string $haystack , string $needle [, int $offset ] )

Find position (in grapheme units) of last occurrence of a string which character in haystack to start searching. The position returned is still relative to the beginning of haystack.

Parameters

haystack

The string to look in

needle

The string to look for

offset

The optional offset parameter allows you to specify

Return Values

Returns the position as an integer. If needle is not found, grapheme_strrpos() will return boolean FALSE.

Examples

Example #1 grapheme_strrpos() example

< ?php
TODO
?>

The above example will output:

         
TODO

See Also

TODO


intl Functions
PHP Manual