Parsing dailysummary in PHP

  • 1
  • Question
  • Updated 4 years ago
I'm having trouble parsing the Daily summary of a historical feed.  I thought it would be something like this:

  $var = $parsed_json->{'history'}->{'dailysummary'}->{'meanwindspdi'};

but it's not working. Any assistance would be appreciated.
Photo of Michaela Knott

Michaela Knott

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Ravi Yadav

Ravi Yadav

  • 82 Posts
  • 9 Reply Likes
Note that 'dailySummary' is an array, so you would have to get the first index from it and then parse it.