/* returns tweetDetails */
function returnTweets()
{
$return = array();
$url = $hashtagSearchUrl = "http://search.twitter.com/search.json?q=%23gencsengeleceksin&include_entities=1&result_type=recent&rpp=50";
foreach(json_decode(file_get_contents($url))->results as $t)
{
$return[] = $t;
}
return $return;
}
/* assigns tweet details to a variable */
$ts = returnTweets();
foreach ($ts as $t)
echo $t->id."<br />";
This must output a list of tweet id's . For example :
190914827918857531
190914827918845655
165456467265456156
Generally it's working but at some servers it's returning something like this:
1.9090219393785E+17
How can i solve this problem?