作者 lyh

gx

@@ -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标签的内容