一聚教程网:一个值得你收藏的教程网站

热门教程

dedecms分词系统调用代码

时间:2022-06-24 18:29:29 编辑:袖梨 来源:一聚教程网

require("lib_splitword_full.php");

$str = "一线楼市交易清淡";


$t1 = exectime();

$sp = new splitword();

$t2 = exectime();

//$t0 = $t2-$t1;

//echo "载入时间: $t0

";


echo $sp->findnewword($sp->splitrmm($str))."


";
echo $sp->splitrmm($str)."
";

$sp->clear();

echo $str."
";

$t3 = exectime();
$t0 = $t3-$t2;
echo "
处理时间: $t0

";


function exectime(){
 $time = explode(" ", microtime());
 $usec = (double)$time[0];
 $sec = (double)$time[1];
 return $sec + $usec;
}

热门栏目