正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -437,6 +437,8 @@ function isEnglish($str) { | @@ -437,6 +437,8 @@ function isEnglish($str) { | ||
| 437 | */ | 437 | */ |
| 438 | function characterTruncation($string,$pattern){ | 438 | function characterTruncation($string,$pattern){ |
| 439 | preg_match($pattern, $string, $matches); | 439 | preg_match($pattern, $string, $matches); |
| 440 | + var_dump($matches); | ||
| 441 | + die(); | ||
| 440 | if (isset($matches[1])) { | 442 | if (isset($matches[1])) { |
| 441 | $result = $matches[1]; | 443 | $result = $matches[1]; |
| 442 | return $result; // 输出:这是footer标签的内容 | 444 | return $result; // 输出:这是footer标签的内容 |
-
请 注册 或 登录 后发表评论