<?php foreach ($news_list AS $key => $value) { $text = $value['content']; $text = strip_tags($text); $text = mb_substr($text, 0, 120, 'utf-8'); $text = str_replace(array('\n', '\r', '\t', ' ', ' '), '', $text); $news_list[$key]['abstract'] = $text; } ?>
上一篇:统计网页访问量
下一篇:php导出为word