title: php preg_replace question.. how to get rid of a space?
body: <pre><code>$thisdate = '2011-01-18 14:52:33';
  
  $security = preg_replace('/[^\d\s]/', '', $thisdate);
  
  echo $security;
  </code></pre>
  
  <p>This results in 20110118 145233</p>
  
  <p>How would i get rid of the space?</p>
  
  <p>Thanks.</p>