title: How do I strip all spaces out of a string in PHP?
body: <p>How can I <strong>strip</strong> / <strong>remove</strong> all <strong>spaces</strong> of a <strong>string</strong> in PHP?</p>
  
  <p>I have a <strong>string</strong> like <code>$string = "this is my string";</code></p>
  
  <p>The output should be  <code>"thisismystring"</code></p>
  
  <p>How can I do that?</p>