Home  >  Article  >  php教程  >  json 去空格

json 去空格

WBOY
WBOYOriginal
2016-06-06 19:34:071945browse

json去空格 无 $row[title]=urlencode(preg_replace("/(\s|\nbsp\;| |\xc2\xa0)/","",$row[title]));

json 去空格
$row[title]=urlencode(preg_replace("/(\s|\&nbsp\;| |\xc2\xa0)/","",$row[title]));
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