Eliminar todos los espacios PHP
$string = "this is my string"
$string = preg_replace('/\s+/', '', $string);
King Pinaster
$string = "this is my string"
$string = preg_replace('/\s+/', '', $string);
$ro = preg_replace('/\s+/', ' ',$row['message']);