How to strip all spaces out of a string in php?

zs1982

New Member
How can i strip / remove all spaces of a string in PHP?Say i have a string like \[code\]$string = "this is my string";\[/code\]the output should be like \[code\]"thisismystring"\[/code\]How can i do that?
 
Back
Top