Function utf8_byte_position
Given a string and a character index in the string, in terms of the UTF-8 character position, returns the byte index of that character. Can be useful when you want to PHP's native string functions but we warned, locating the byte can be expensive Takes variable number of parameters - first must be the search string then 1 to n UTF-8 character positions to obtain byte indexes for - it is more efficient to search the string for multiple characters at once, than make repeated calls to this function
Package: utf8
Author: Chris Smith<chris@jalakai.co.uk>
Located at vendor/joomla/string/src/phputf8/utils/position.php
Author: Chris Smith<chris@jalakai.co.uk>
Located at vendor/joomla/string/src/phputf8/utils/position.php
Return value summary
mixed
|
- int if only one input int, array if more |