PHP » GoLang |
login |
register |
about
|
GoLang grapheme_extract
request it (417)
GoLang replacement for PHP's grapheme_extract
[edit | history]
grapheme_extract(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) grapheme_extract — Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8 DescriptionProcedural style
string grapheme_extract
( string
$haystack
, int $size
[, int $extract_type
[, int $start = 0
[, int &$next
]]] )Function to extract a sequence of default grapheme clusters from a text buffer, which must be encoded in UTF-8. Parameters
Return ValuesA string starting at offset $start and ending on a default grapheme cluster boundary that conforms to the $size and $extract_type specified. Changelog
ExamplesExample #1 grapheme_extract() example
<?php The above example will output: o%CC%88 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|