title: Remove whitespace around certain character with preg_replace
body: <p>I have a string where I want to remove all the whitespace around a certain character using <strong>preg_replace</strong>. In my case this character is <code>/</code>.</p>
  
  <p>For example:</p>
  
  <p><code>first part / second part</code> would become <code>first part/second part</code></p>
  
  <p>Or let's say that character is <code>:</code> now:</p>
  
  <p><code>first part : second part</code> would become <code>first part:second part</code></p>
  
  <p>I couldn't find an example on how to do this... Thanks!</p>