We need to update a somewhat old API a customer is using. We're getting the data with simplexml_load_file. The new structure is a bit more complex and I could not find a way to retrieve the new data.
The new structure looks like this:
Before we used $ratingPrice = $xml->hotel->ratingPrice;
to get a value.
Now, I need to retrieve $xml->business->subcategoryRating->subcategoryRating->averageRating
. I'm now stuck with that.
How am I able to get the average rating of wifi, or location and have them outputted in single variables?