The following is from another question: Handling data in a PHP JSON Object:
$jsonurl = "http://search.twitter.com/trends.json";
$json = file_get_contents($jsonurl, 0, null, null);
$json_output = json_decode($json);
foreach ($json_output->trends as $trend)
{
echo "{$trend->name}\n";
}
My Question: What is the difference between those two:
file_get_contents($jsonurl,0,null,null)
file_get_contents($jsonurl)
I checked file_get_contents()
PHP manual, but still do not totally understand it, in another words, if i use this line:
file_get_contents($jsonurl)
What will happen?