CLASS_SECCODE::createCode PHP Method

createCode() private method

生成验证码
private createCode ( )
    private function createCode()
    {
        $_len = strlen($this->chars) - 1;
        for ($_i = 0; $_i < $this->len; $_i++) {
            $this->code .= $this->chars[mt_rand(0, $_len)];
        }
    }