21,887
社区成员
发帖
与我相关
我的任务
分享
<?php
$img1 = imageCreateTrueColor(100, 50);
$color1 = imageColorAllocate($img1, rand(0,255), rand(0,255), rand(0,255));
imagestring($img1, 5, 10, 3, "1234", $color1);
header("content-type:image/jpeg");
imagejpeg($img1);
imagedestroy($img1);