Trim unicode whitespace in PHP 5.2

前端 未结 7 1510
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 09:17

How can I trim a string(6) \" page\", where the first whitespace is a 0xc2a0 non-breaking space?

I\'ve tried trim() and preg_match(\'

7条回答
  •  忘掉有多难
    2020-12-01 09:51

    This page may help:

    http://nadeausoftware.com/articles/2007/9/php_tip_how_strip_punctuation_characters_web_page

提交回复
热议问题