Browse Source

去掉空格

master
Mr. Shuixiang 5 years ago
parent
commit
81031a09e7
  1. 7
      app/Service/v3/Implementations/HelperService.php

7
app/Service/v3/Implementations/HelperService.php

@ -44,7 +44,12 @@ class HelperService implements HelperServiceInterface
function (array $match) { function (array $match) {
return strlen($match[0]) >= 4 ? '' : $match[0]; return strlen($match[0]) >= 4 ? '' : $match[0];
}, },
$str);
$str
);
$search = array(" "," ","\n","\r","\t");
$replace = array("","","","","");
$str = str_replace($search, $replace, $str);
return $str; return $str;
} }
Loading…
Cancel
Save