title: Openweathermap: json (min and max temp)
body: <p>I want to implement a weather module for my website. For this I chose "Openweathermap".</p>
  
  <p>I want to get the min and max temperature for today and tomorrow.</p>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$json_string = file_get_contents("http://api.openweathermap.org/data/2.5/forecast/daily?q=london&amp;mode=json");
  $jsonData = json_decode($json_string, true);
  $min_1 = $jsonData['list'][0]['temp'][0]['min'];
  $max_1 = $jsonData['list'][0]['temp'][0]['max'];
  $min_2 = $jsonData['list'][1]['temp'][0]['min'];
  $max_2 = $jsonData['list'][1]['temp'][0]['max'];
  echo $min_1.' - '.$max_1.'&lt;br&gt;&lt;br&gt;';
  echo $min_2.' - '.$max_2.'&lt;br&gt;&lt;br&gt;';
  </code></pre>
  
  <p>But with this code I get no output (except the two "-").</p>
  
  <p><strong>json file</strong></p>
  
  <p><img src="https://i.stack.imgur.com/EJ7zA.png" alt="enter image description here"></p>