From 74b163ccbae370f42c08e47ff4375382bbb57c70 Mon Sep 17 00:00:00 2001 From: hdm Date: Fri, 24 Mar 2023 22:29:55 +0800 Subject: [PATCH] =?UTF-8?q?msubstr=E6=96=B9=E6=B3=95=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC=EF=BC=8C?= =?UTF-8?q?=E5=85=BC=E5=AE=B9php8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common.php b/app/common.php index f3447d0..69607c2 100644 --- a/app/common.php +++ b/app/common.php @@ -851,7 +851,7 @@ function format_bytes($size, $delimiter = '') * @param $length 截取长度 * @return */ -function msubstr($str, $start = 0, $length, $charset = "utf-8", $suffix = true) +function msubstr($str, $start = 0, $length=1, $charset = "utf-8", $suffix = true) { if (function_exists("mb_substr")) { $slice = mb_substr($str, $start, $length, $charset);