作者 lyh

gx

... ... @@ -437,8 +437,8 @@ function isEnglish($str) {
*/
function characterTruncation($string,$pattern){
preg_match($pattern, $string, $matches);
if (isset($matches[1])) {
$result = $matches[1];
if (isset($matches[0])) {
$result = $matches[0];
return $result; // 输出:这是footer标签的内容
} else {
return [];
... ...