Saturday, February 9, 2013

How to remove repeating white-space in a string

 preg_replace('/\s+/', ' ', $user);

No comments:

Post a Comment