title: Convert UNIX timestamp to milliseconds
body: <p>How can I use PHP to get a UNIX timestamp like what I get from the JS method <code>.getTime()</code>? I seem to be having trouble since <code>.getTime()</code> returns milliseconds. I know I have to convert the timestamps first for JS to read it, but how can I do this?</p>
  
  <p>Edit:</p>
  
  <p>Agreed with the multiply by 1000, but why do I get this?:</p>
  
  <pre><code>timestamp: 1305593400
  timestamp * 1000: 1.3055934E+12
  
  timestamp: 1305612420
  timestamp * 1000: 1.30561242E+12
  
  timestamp: 1305635400
  timestamp * 1000: 1.3056354E+12
  
  timestamp: 1304901960
  timestamp * 1000: 1.30490196E+12
  
  timestamp: 1304944620
  timestamp * 1000: 1.30494462E+12
  </code></pre>