Convert Multiple Spaces To a Single Space
Sometimes you want to sanitise a block of text or input by removing consecutive multiple whitespace entries from it, replacing them with a single space.
This php code will allow you to do just that:
$message = preg_replace("/ss+/", " ", $message);