### 验证码 ***** ``` //生成验证码 public function Captcha() { $c = new Captcha(); $c->doimg(); $code = $c->getCode(); session("myf_code", $code); } //获取session中的验证码 public function code(){ $code = session("myf_code"); echo $code; } ```