Enhance default splitter function to handle UTF-8 characters.
public static split ( string $str, integer $length = 1, boolean $yoon = false ) : array | ||
$str | string | The string to split. |
$length | integer | (optional) Define an optional substring length. Default to 1. |
$yoon | boolean | (optional) Whether considering the base syllable and the following yoon character as a single character or not Default to false. |
Результат | array | An array of strings. |