0
可能重复:
How to wipe html special chars like and others from text with the help of PHP?如何从字符串的开头删除“ ”?
我有这个字符串:
6:30
如何删除
?爆炸不起作用。
可能重复:
How to wipe html special chars like and others from text with the help of PHP?如何从字符串的开头删除“ ”?
我有这个字符串:
6:30
如何删除
?爆炸不起作用。
$string = " 6:30";
$string = str_replace(" ","",$string);
echo $string;
或
$string = " 6:30";
$string = trim($string);
echo $string;
应
trim(html_entity_decode($s))
问题产权工作是不恰当的,环境不给出。 – Deele 2011-12-27 13:22:42