如何修剪a string(6) " page",第一个空格是0xc2a0不间断空格?
string(6) " page"
我试过trim()和preg_match('/^\s*(.*)\s*$/u', $key, $m);.
trim()
preg_match('/^\s*(.*)\s*$/u', $key, $m);
另一个问题:我怎样才能可靠地复制这些字符?它们似乎被转换为"普通"空间,这使得调试变得困难.
php unicode whitespace utf-8 character-properties
character-properties ×1
php ×1
unicode ×1
utf-8 ×1
whitespace ×1