resting on 07/25/11
Last Edited at 07/25/11 05:40pm
function trim_whitespace($source) { $pattern = '/[^\w]\s*/'; return preg_replace($pattern, ' ', $source); }
Report this snippet Tweet
Comment:
You need to login to post a comment.