Home >Backend Development >PHP Tutorial >dedecms word segmentation system call code_PHP tutorial

dedecms word segmentation system call code_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:08:411071browse

Here you can download dedecms and find the file lib_splitword_full.php, or go to http://down.php100.com to download the word segmentation package. Follow the following method to correctly use the dedecms word segmentation system.

dedecms word segmentation system call code
/*
Here you can download dedecms and find the lib_splitword_full.php tutorial file, or go to http://down.php100.com to download the word segmentation package and follow the method below. The word segmentation system of dedecms can be used correctly.
*/
require("lib_splitword_full.php");

$str = "Transactions in the first-line property market are light";


$t1 = exectime();

$sp = new splitword();

$t2 = exectime();

//$t0 = $t2-$t1;

/ /echo "Loading time: $t0

";


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


";

$sp->clear();

echo $ str."
";

$t3 = exectime();
$t0 = $t3-$t2;
echo "
Processing time: $t0 < br>
";


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


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/444865.htmlTechArticleHere you can download dedecms and find the file lib_splitword_full.php, or go to http://down.php100.com Download the word segmentation package and follow the following method to correctly use dedecms segmentation...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn