back/vendor/topthink/think-captcha/srchelper.php

Functions

captcha()

captcha(string  $id = '', array  $config = []) : \think\Response

Parameters

string $id
array $config

Returns

\think\Response —

captcha_src()

captcha_src( $id = '') : string

Parameters

$id

Returns

string —

captcha_img()

captcha_img( $id = '') : mixed

Parameters

$id

Returns

mixed —

captcha_img_with_replacement()

captcha_img_with_replacement(string  $id = '', string  $element = 'think-captcha') : string

Parameters

string $id
string $element

验证码HTML元素ID

Returns

string —

captcha_check()

captcha_check( $value, string  $id = '') : bool

Parameters

$value
string $id

Returns

bool —