1 2 3 4 5 6 7
<?php $input = "123456789012345678901234567890"; $pieces = str_split($input); $rand_keys = array_rand($pieces , 10); $str = implode("", $rand_keys); echo $str; ?>
1
261012131420222328