fork download
  1. <?php
  2.  
  3. $string = 'Кот';
  4. $letters = preg_split('//u', $string, null, PREG_SPLIT_NO_EMPTY);
  5. var_dump($letters);
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  string(2) "К"
  [1]=>
  string(2) "о"
  [2]=>
  string(2) "т"
}