php英文验证码captcha.class.php 复制代码 代码如下: <?php class Captcha { private $width; private $height; private $codeNum; private $code; private $im; function __construct($width=80, $height=20, $codeNum=4) { $this->width = $width; $this->height = $height; $this->codeNum = $codeNum; } function showImg() { //创