function ReturnTheIntroField($r){ global $public_r,$check_tbname; $f=0; $sublen=100;//截取100个字 if(strstr($public_r['savetxtf'],",".$check_tbname.".newstext,")) { $r['newstext']=''; $f=1; } if($r['smalltext'])//简介 { $value=$r['smalltext']; } elseif($r['newstext'])//新闻内容 { $value=sub(strip_tags($r['newstext']),0,$sublen,false); } elseif($r['softsay'])//软件简介 { $value=$r['softsay']; } elseif($r['flashsay'])//flash简介 { $value=$r['flashsay']; } return $value; }
对于这部分,如果是想读取文本文件内容,应该怎么办呢?
|