PHP 中文切词类库

PHP 中文切词类库

http://www.thinkphp.cn/code/42.html
http://www.thinkphp.cn/code/1178.html
http://www.sxqswl.net/show-22-107-1.html 


//function __construct() { $this->PSCWS4(); }
function __construct($charset = 'gbk') { $this->PSCWS4($charset); }
这一步是重要的,否则乱码或者不支持中文切词。
posted @ 2016-09-09 10:34 Newman·Li 阅读( ...) 评论( ...) 编辑 收藏

你可能感兴趣的:(PHP 中文切词类库)