function phutil_is_utf8($string)libphutil Technical Documentation (Core Utilities)
function phutil_is_utf8($string)
libphutil Technical Documentation (Core Utilities)
Determine if a string is valid UTF-8.
Parameters
string | $string | Some string which may or may not be valid UTF-8. |
Return
bool | True if the string is valid UTF-8. |
- Defined
- src/utils/utf8.php:96