$re = rand(1,99999); |
echo $re; |
span style="color: #0000BB"><?php$str = 'abcdef1234'; // строка с возможными символами.$len = 5; // количество выводимых символов$out = '';$max = strlen($str);for($i=0; $i<$len; $i++){ $out.= $str[mt_rand(0, $max)];}echo $out;?> |