Possible Duplicate:
To strip whitespaces inside a variable in PHP
How can i strip / remove all spaces of a string in PHP?
I have a string like $string = "this is my string";
the output should be "thisismystring"
How can i do that?
转载于:https://stackoverflow.com/questions/2109325/how-to-strip-all-spaces-out-of-a-string-in-php