<?php
$number=chr(rand(48,57)).chr(rand(65,90)).chr(rand(97,122));
echo '<hr/>';
for($i=1;$i<=4;$i++){
echo $number{rand(0,2)}.'-';
}
$number=chr(rand(48,57)).chr(rand(65,90)).chr(rand(97,122));
echo '<hr/>';
for($i=1;$i<=4;$i++){
echo $number{rand(0,2)}.'-';
}
2018-01-29
已采纳回答 / qq_erv_0
$rand = ''; for($i=0; $i<4; $i++){ $rand.= dechex(mt_rand(1,15)); } echo $rand;
2018-01-29
$a='asfsa4454AASDFSAFDSA';
$b='';
for($i=0;$i<4;$i++){
$b.=$a{mt_rand(0,strlen($a)-1)};
}
echo $b;
$b='';
for($i=0;$i<4;$i++){
$b.=$a{mt_rand(0,strlen($a)-1)};
}
echo $b;
2018-01-20
0.0,0, '0', "0", '', "", false,array() -> bool(false)
2018-01-18