Skip to content

Instantly share code, notes, and snippets.

View rundnovic's full-sized avatar

雨醉风尘 rundnovic

View GitHub Profile
@rundnovic
rundnovic / recursive-filter-punctuation.php
Last active May 24, 2019 01:15
递归过滤标点符号
<php
public function getFilterStr($str)
{
//$str = "环境优雅,干净卫生,,,,服务态。。。。度亲切,性价比高,涉外宾馆,值得推荐??????";
$filteredStr = $this->filterSign($str);
return $filteredStr;
}
protected function filterSign($str)
{