=dechex(rand(1, 15));
6 }
7
8 //2.创建图片
9 //创建一张图片
10 $image=imagecreatetruecolor(100, 30);
11 //...", "广州GZ");
28 imagettftext($image, 12,11, 20, 20, $lineColor, 'simhei.ttf', $str);
29
30 //3.随机数写入图片...测试了一下下面的代码:
1 //添加文字
2 //编码转换
3 $str=iconv("GBK", "UTF-8", "广州GZ");
4 imagettftext($image, 12,11, 20,