<?php
/**
* Created by PhpStorm.
* User: Pasa吴
* Date: 2019/9/9
* Time: 11:53
*/
namespace app\common\logic;
use app\help\scws\PSCWS4;
use think\facade\Env;
class Article extends Base
{
public $pscws;
public function getList($param)
{
$this->pscws = new PSCWS4('utf8');
$this->pscws->set_charset('utf-8');
$this->pscws->set_dict(Env::get('root_path').'public'.'/dict.utf8.xdb');
//使用:
$this->pscws->send_text("由于本人水平有限,此文难免出现一些错误或者不准确或者表达不好的地方,如有任何不对,恳请批评指正。");
while ($some = $this->pscws->get_result())
{
foreach ($some as $word)
{
$article[] = $word['word'];
}
}
var_dump($article);die;
}
}
本文为Pasa吴原创文章,转载无需和我联系,但请注明来自Pasa吴博客https://www.pasawu.top
最新评论