title: PHP Passing a Javascript timestamp using json_encode
body: <p>I am preparing data to pass to my Javascript in PHP. Encoding that data using json_encode and passing it.</p>
  
  <p>One of the elements I am trying to pass is a javascript timestamp. PHP timestamps are in seconds, Javascript timestamps in milliseconds, so i need to multiply the php timestamp by 1000.</p>
  
  <p>The problem is that the resulting int is too large and gets sent at 1.3239E+12 instead of 1323907200000 losing around 1 day of precision on the way.</p>
  
  <p>One way to do it would be to pass a Date.UTC() function in the json but there's no easy way to do it using json_encode.</p>
  
  <p>Any solution?</p>