$light_config['thread_summary_word']){ $message_omit = '...查看更多>>'; } $sub_content = mb_substr($message,0,$light_config['thread_summary_word'],'utf-8').$message_omit; $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/"; $imgcount=preg_match_all($pattern,$content,$match); $imgs=array(); for($i=0;$i<$light_config['thread_summary_pic'];$i++){ if(!empty($match[0][$i])){ $imgs[$i]=$match[1][$i]; } }?>