请指教,谢谢!!
php吧
全部回复
仅看楼主
level 1
xcmd5201 楼主
<?php
$str=array("大","更","创","天","科","客","博","技","立","新");
$word=count($str);
for($i=0;$i<4;$i++){
$num=rand(0,$word-1);
$img=$img."<img src=' images/checkcode/".$num.".gif' width='16' height='16'>";
$pic=$pic.$str[$num];
}
?>
请问:"<img src=' images/checkcode/".$num.".gif' width='16' height='16'>"这行是个图片吧?
为啥用字符串连接符.连接图片?:$img=$img."<img src=' images/checkcode/".$num.".gif' width='16' height='16'>";
2023年08月13日 21点08分 1
level 1
xcmd5201 楼主
我有些懂了,哪位高手能再通俗的解释一下。谢谢
2023年08月14日 02点08分 4
1