可能重复: 在PHP中去除变量内的空格
我怎么能剥夺/删除所有空格一个的字符串在PHP?
我有一个像 输出应该是 的字符串$string = "this is my string";"thisismystring"
$string = "this is my string";
"thisismystring"
我怎样才能做到这一点?
php string spaces
考虑:
这是真的unicode=utf16吗?
unicode=utf16
许多人说Unicode是标准,而不是编码,但大多数编辑器实际上支持另存为Unicode 编码.
unicode utf-8
php ×1
spaces ×1
string ×1
unicode ×1
utf-8 ×1