php code for current conditions

  • 1
  • Question
  • Updated 6 years ago
I want to add the current conditions to the json string. I am seeking guidance on the current conditions code. Here is the php code that I want to add the current conditions code:

{'location'}->{'city'};
$temp_f = $parsed_json->{'current_observation'}->{'temp_f'};
echo "Current temperature
in ${location}: ${temp_f}° \n";
?>
Photo of K G F

K G F

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 1

Be the first to post a reply!