title: PHP equivalent of JavaScript getTime()
body: <p>Suppose I'm running the following JavaScript getTime() function</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  var $x = Math.round((new Date()).getTime()/1000);
  &lt;/script&gt;
  </code></pre>
  
  <p>What would the equivalent code in PHP look like?</p>