Created
October 25, 2012 09:29
-
-
Save paulund/3951622 to your computer and use it in GitHub Desktop.
Remove All Whitespace In A String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$string = preg_replace('/\s+/', '', $string); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment