<?
/*
* The Function Code Come From www.TO61.com By Cody
* Cody's E-mail: cody@to62.com
* Cody's MSN: likequan@hotmail.com
* Cody's QQ: 117310219
*/
/* 截取字符串指顶的长度 BEGING*/
function st($strings,$stringlen)
{
if(strlen($strings) > $stringlen)
{
$newstrings=substr($strings,0,$stringlen)."...";
return $newstrings;
}
else
{ return $strings;}
}
/* 截取字符串指顶的长度 END*/
?>