public function captcha() { ob_get_clean(); $v = new \Think\PhpCaptcha(null, 120, 50); $v->UseColour(true); $v->SetNumChars(4); $v->Create(); }
function check_captcha($code) { return Think\PhpCaptcha::Validate($code); }