title: How do I get a unix timestamp from PHP date time?
body: <p>I'm trying to get a unix timestamp with PHP but it doesn't seem to be working.  Here is the format I'm trying to convert to a unix timestamp:</p>
  
  <p>PHP</p>
  
  <pre><code>$datetime = '2012-07-25 14:35:08';
  
  $unix_time = date('Ymdhis', strtotime($datetime ));
  echo $unix_time;
  </code></pre>
  
  <p>My result looks like this:</p>
  
  <pre><code>20120725023508
  </code></pre>
  
  <p>Any idea what I'm doing wrong?</p>