Possible Duplicate:
Handling big user IDs returned by FQL in PHP
I have a JSON response from twitter api, I need to store tweets ids in database using php. The problem is that the tweet id has about 18 digits and php is reading in X.XXE+XX format. I'm on 32bit os. I tried this way with no success
$json = json_decode(file_get_contents($urlo, "r"));
foreach($json->results as $key){
$I_WANT_A_STRING = strval($key->id);
}
I would really appreciate any suggestion!
SOLVED thanks for suggestions, but when setting the parameters into the json_decode function it gave me other errors. If somebody get stuck with the same problem, in json response, every tweet has id and id_str attribute.