Answers for "php multibyte string shuffle"

PHP
0

php multibyte string shuffle

php > $string = "Pretend I'm multibyte!";
php > $len = mb_strlen($string);
php > $sploded = array(); 
php > while($len-- > 0) { $sploded[] = mb_substr($string, $len, 1); }
php > shuffle($sploded);
php > echo join('', $sploded);
rmedt tmu nIb'lyi!eteP
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language