- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected 'i' (T_STRING), expecting variable (T_VARIABLE) or '$' in /in/3hjQk on line 10
Process exited with code 255.
<?php
{
//need the js code here...
$json_string = file_get_contents("http://api.wunderground.com/api/a4ae759739c92427/forecast/q/UK/Newcastle.json");
$parsed_json = json_decode($json_string);
for($ i = 0; 4i <= 1; $i++) {
$day = $parsed_json->{'forecast'}->{'txt_forecast'}->{'forecastday'}->{i};
return $day->{'title'} . "<br>" . $day->{'fcttext_metric'} . "<br><br>";
}
}