时间:2021-07-01 10:21:17 帮助过:40人阅读
PHP GD2 浏览器 编码 分享到:
$im = imagecreatetruecolor(50,25);
$red = imagecolorallocate($im,255,0,0);
$str = 'ABCDEFGHIJKMNPQRSTUVWXTZabcdefghijkmnpqrstuvwxtz23456789';
$str = substr(str_shuffle($str),0,4);
imagestring($im,5,8,5,$str,$red);
header('content-type:image/png');
imagepng($im);
imagedestroy($im);
?>