<?php $string = 'Кот';$letters = preg_split('//u', $string, null, PREG_SPLIT_NO_EMPTY);var_dump($letters);
Standard input is empty
array(3) { [0]=> string(2) "К" [1]=> string(2) "о" [2]=> string(2) "т" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!