c h e c k C o d e = " " ; f o r ( checkCode = ""; for( checkCode="";for(i=0; i < = 4 ; i<=4; i<=4;i++){
$checkCode .= dechex(rand(1,15));//十六进制转换,随机生成一个四位验证码
}
// echo $checkCode;
$im = imagecreatetruecolor(100, 50);//创建画布宽:100 高50
r e d = i m a g e c o l o r a l l o c a t e ( red = imagecolorallocate( red=imagecolorallocate(im, 255, 0, 0);//创建一个颜色
// imagestring( i m