Page MenuHomePhabricator
Diviner libphutil Tech Docs phutil_utf8v_codepoints

function phutil_utf8v_codepoints($string)
libphutil Technical Documentation (Core Utilities)

Split a UTF-8 string into an array of codepoints (as integers).

Parameters
string$stringA valid UTF-8 string.
Return
listA list of codepoints, as integers.