PHP » GoLang |
login |
register |
about
|
GoLang grapheme_strpos
request it (385)
GoLang replacement for PHP's grapheme_strpos
[edit | history]
grapheme_strpos(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) grapheme_strpos — Find position (in grapheme units) of first occurrence of a string DescriptionProcedural style
int grapheme_strpos
( string
$haystack
, string $needle
[, int $offset = 0
] )Find position (in grapheme units) of first occurrence of a string Parameters
Return ValuesReturns the position as an integer. If needle is not found, grapheme_strpos() will return boolean FALSE. Changelog
ExamplesExample #1 grapheme_strpos() example
<?php The above example will output: 2 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|