diff --git a/src/helper.php b/src/helper.php index 914c749..380e0c4 100644 --- a/src/helper.php +++ b/src/helper.php @@ -50,6 +50,19 @@ function captcha_img($id = '') } +/** + * @param string $id + * @param string $element 验证码HTML元素ID + * @return string + */ +function captcha_img_with_replacement($id = '', $element = 'think-captcha') +{ + return '' . $element .
+        ''; +} + + /** * @param $value * @param string $id