2011-07-06 3 views

답변

1

은, 당신이 원하는 것 :

// \s+ means 1 or more whitespace characters. 
// '' means that the whitespace will be replaced by emptiness. 
// so this should return a string which replaces all whitespace with nothing 
preg_replace("#\s+#g", '', $string);