public static function showComplexImage($code, $words = 20, $codeNum = 4, $codeType = 2, $width = 160, $height = 90, $fontSize = 36, $tip = '') { $captcha = new YucCaptcha($width, $height, $codeNum, $codeType, $fontSize); $captcha->createRes(); $captcha->bgColor(); $captcha->fillWords($words); $captcha->CreateTip($tip); $captcha->writeText($code); $captcha->bgBorder(); $captcha->output(); return $captcha->getCodeResult(); }