问题描述
php
$z=adbqhwbqjuyguqwgyquiwguyquwehqwuiepoqiuwepoqiuwpoiqwepiqwruweroiuyiqazxswedcvfrtgbnhyujmkilopplmkoijnbhuygvcftrdxzsewqa;
$a="abcdefghijklmnopqrstuvwsyz";
for($i=0;$i
$s=$a[$i];
$b=0;
for ($j=0;$j
if ($a[$i]==$z[$j]){
$b =1;
}
}
echo $a{$i}."出现的次数:".$b."
";
}
?>
1
# php
问题解答
回答1:随机大写字母chr(rand(65,90));随机小写字母chr(rand(97,122));可以简化输入那么多的字符