dedecms分词系统调用代码

作者:袖梨 2022-06-24

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;
}

相关文章

精彩推荐