fork download
  1. <?php
  2. $a = array('valor' => 1338838365890273563);
  3. $serializado = serialize($a);
  4.  
  5. echo $serializado;
  6. echo "\n-------------------------\n";
  7. var_dump(unserialize($serializado));
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
a:1:{s:5:"valor";d:1.3388383658902735E+18;}
-------------------------
array(1) {
  ["valor"]=>
  float(1.3388383658903E+18)
}