当前位置:Gxlcms > PHP教程 > phptrim无法处理中文的半角圆角等空格时trimenablerltrimphpphptrim去除空

phptrim无法处理中文的半角圆角等空格时trimenablerltrimphpphptrim去除空

时间:2021-07-01 10:21:17 帮助过:12人阅读

有的中文的半角,圆角空格或者段落符显示为空白的。可以用正则来处理

preg_replace("/(\s|\&nbsp\;| |\xc2\xa0)/","",$content);

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了php trim无法处理中文的半角圆角等空格时,包括了trim,php方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

  • 人气教程排行