title: How do I remove extra spaces, tabs and line feeds from a sentence and substitute them with just one space?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2326125/remove-multiple-whitespaces-in-php">remove multiple whitespaces in php</a>  </p>
  </blockquote>
  
  
  
  <p>I have a stream of characters, a sentence or a paragraph, which may have extra spaces in two words or even tabs or line feeds, how can I remove all these and substitute them by a single whitespace.</p>