From 15da06a63dffc5f9129b765af3b3de418b24a97d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 9 Jun 2021 15:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/function.php b/function.php index fbe7c5e2..77ae4eb1 100644 --- a/function.php +++ b/function.php @@ -380,13 +380,14 @@ if (!function_exists('trimAll')) { /** - * @param $content - * @param int $len - * @param string $encode + * 空白字符替换 + * @param string $content 内容 + * @param int $len 截取长度 + * @param string $encode 编码 * @param bool $htmlTags - * @return string|string[]|null + * @return array|string|null */ - function trimAll($content, $len = 0, $encode = 'utf-8', $htmlTags = true): array|string|null + function trimAll(string $content, $len = 0, $encode = 'utf-8', $htmlTags = true): array|string|null { $str = trim($content); if ($htmlTags) {