【www.gdgbn.com--word】

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

本文来源:http://www.gdgbn.com/bangongshuma/26143/