Return to Snippet

Revision: 60199
at October 25, 2012 18:32 by alexteg


Initial Code
$string = preg_replace('/\s+/', '', $string);

Initial URL
http://stackoverflow.com/questions/2109325/how-to-strip-all-spaces-out-of-a-string-in-php

Initial Description
Removes all whitespace in a string.

Initial Title
Remove all whitespace

Initial Tags


Initial Language
PHP