From 2a10155772e869b1f5c2d9582f362c74f1598cd3 Mon Sep 17 00:00:00 2001 From: changwei <867597730@qq.com> Date: Thu, 7 Jun 2018 02:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=94=AF=E6=8C=81=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81=E5=9B=BE=E7=89=87=E7=82=B9=E5=87=BB=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这算是一个比较常用的需求了 --- src/helper.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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