title: Remove multiple whitespaces
body: <p>I'm getting <code>$row['message']</code> from a MySQL database and I need to remove all whitespace like <code>\n</code> <code>\t</code> and so on.</p>
  
  <pre><code>$row['message'] = "This is   a Text \n and so on \t     Text text.";
  </code></pre>
  
  <p>should be formatted to:</p>
  
  <pre><code>$row['message'] = 'This is a Text and so on Text text.';
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code> $ro = preg_replace('/\s\s+/', ' ',$row['message']);
   echo $ro;
  </code></pre>
  
  <p>but it doesn't remove <code>\n</code> or <code>\t</code>, just single spaces. Can anyone tell me how to do that?</p>