title: php remove characters between and including specific characters
body: <p>I know how to remove specific character within a string but not sure about the following:</p>
  
  <p>e.g. string: <code>Code [7845] [5589] [554] [4]</code></p>
  
  <p>I need to remove all instances of <code>[</code> and <code>]</code> and everything in between them, then trim whitespace off so I end up with simply: <code>Code</code></p>
  
  <p>Is this possible?</p>