This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mb_str_split($str, $split_length) { | |
$chars = array(); | |
$len = mb_strlen($str); | |
for ($i = 0; $i < $len; $i+=$split_length ) { | |
$chars[] = mb_substr($str, $i, $split_length); // only one char to go to the array | |
} | |
return $chars; | |
} |