intl Functions
PHP Manual

grapheme_extract

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

grapheme_extract — Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8.

Description

Procedural style

string grapheme_extract ( string $haystack , int $size [, int $start ] )

Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8.

Parameters

haystack

string to search

size

maximum number of grapheme clusters to return

start

starting position in $haystack in bytes

Return Values

A string starting at offset $start containing no more than $size grapheme clusters and ending on a default grapheme cluster boundary.

Examples

Example #1 grapheme_extract() example

< ?php
TODO
?>

The above example will output:

         
TODO

See Also

TODO


intl Functions
PHP Manual