Some Chinese half-width, rounded spaces or paragraph breaks are displayed as blank. Can be processed with regular expressions
<code>preg_replace("/(<span>\s</span>|<span>\&</span>nbsp<span>\;</span>| |<span>\xc</span>2<span>\xa</span>0)/","",<span>$content);</span></code>
The above introduces the content of trim and php when php trim cannot handle Chinese half-width rounded corners and other spaces. I hope it will be helpful to friends who are interested in PHP tutorials.