title: PHP: Accessing dictionaries from a JSON string
body: <p>I'm writing a simple PHP script that makes an API call that returns JSON. However, I'm having trouble figuring out how to take that JSON string, convert it into a dictionary, and access nested dictionaries/data within it.</p>
  
  <p>Here's what I have so far:</p>
  
  <pre><code>&lt;?php
  $id = $_REQUEST['id'];
  
  $url = http://exampleURLThatReturnsJSONString.com
  $rawData = file_get_contents($url);
  </code></pre>
  
  <p>I've read that you should use something like <code>$decodedData = json_decode($rawData)</code>
  , but I'm not sure what to do next, especially if I want to access nested dictionaries with a key like <code>Schedule</code>.</p>
  
  <p>Any help would be greatly appreciated, thanks!</p>