when json decoded json in php 1 of numeric value altered. json given below:
[ { "__m":"m_0_7p" }, 100001572061234, null, "profile_friends", "pb_friends_tl", "\/ajax\/add_friend\/action.php", "", true, null, false, null, null, "friends_tab", [ ] ]
on json decode output above json
array ( [0] => stdclass object ( [__m] => m_0_7o ) [1] => 1.000091378372e+14 [2] => [3] => profile_friends [4] => pb_friends_tl [5] => /ajax/add_friend/action.php [6] => [7] => 1 [8] => [9] => [10] => [11] => [12] => friends_tab [13] => array ( ) )
where '100001572061234' changed 1.000091378372e+14. don't know why happening. please me this. thank you...
when php displays numbers, uses php.ini precision setting decide whether should display digits, or use scientific format..... display setting, doesn't change value internally.
however, value large signed integer in 32-bit php, treated float in php
from php 5.4.0 have option use option flags determine how large integer values handled
$decoded = json_decode($encoded, false, null, json_bigint_as_string);