Assuming that in 2019 every solution which is not UNICODE-safe is wrong. What is the best way to convert a string to array of UNICODE characters in PHP?
Obviously th
This works for me, it explodes a unicode string into an array of characters:
// // split at all position not after the start: ^ // and not before the end: $, with unicode modifier // u (PCRE_UTF8). // $arr = preg_split("/(?
For example:
'; print_r($arr); echo '