<?php
$int = 1968401665333658496;
echo json_encode( array("$int",$int) );
?>
Recieved in browser: [ "1968401665333658496" , 1968401665333658600 ]
It "rounds off" my integer?
Btw : PHP_INT_MAX = 9223372036854775807 ~ PHP Version 5.3.2-1ubuntu4.7
No problems with these huge integers anywhere (PHP, MySQL or Javascript)
- until json_encode(
) screws it up (silently btw..)