title: What is the difference between space and whitespace in PHP?
body: <p>What is the difference between <strong>space</strong> and <strong>whitespace</strong> in PHP?</p>
  
  <p>I saw on different places that to <strong>strip out all the spaces</strong> use <code>str_replace()</code> and use <code>preg_replace()</code> for <strong>whitespace</strong>.</p>
  
  <p>Here is a reference:  <a href="https://stackoverflow.com/a/2109339/4003463">https://stackoverflow.com/a/2109339/4003463</a></p>