title: Adressing PHP array decoded from JSON
body: <p>I'm loading a JSON array and decode it to an PHP array</p>
  
  <pre><code>$jsonfile = file_get_contents('https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&amp;symbol=MSFT&amp;interval=15min&amp;outputsize=full&amp;apikey=demo'); 
  $jsonarray = json_decode($jsonfile); 
  var_dump($jsonarray);
  </code></pre>
  
  <p>So far so good I get an array that looks like that:</p>
  
  <pre><code>object(stdClass)#1 (2) { 
      ["Meta Data"]=&gt; object(stdClass)#2 (5) { 
          ["1. Information"]=&gt; string(49) "Daily Prices (open, high, low, close) and Volumes" 
          ["2. Symbol"]=&gt; string(5) "AAWVX" 
          ["3. Last Refreshed"]=&gt; string(10) "2017-06-30" 
          ["4. Output Size"]=&gt; string(9) "Full size" 
          ["5. Time Zone"]=&gt; string(10) "US/Eastern" 
      } 
      ["Time Series (Daily)"]=&gt; object(stdClass)#3 (105) { 
          ["2017-06-30"]=&gt; object(stdClass)#4 (5) { 
              ["1. open"]=&gt; string(7) "10.5100" 
              ["2. high"]=&gt; string(7) "10.5100" 
              ["3. low"]=&gt; string(7) "10.5100" 
              ["4. close"]=&gt; string(7) "10.5100" 
              ["5. volume"]=&gt; string(1) "0" 
          } 
          ["2017-06-29"]=&gt; object(stdClass)#5 (5) { ["1. open"]=&gt; string(7) "10.4800" ["2. high"]=&gt; string(7) "10.4800" ["3. low"]=&gt; string(7) "10.4800" ["4. close"]=&gt; string(7) "10.4800" ["5. volume"]=&gt; string(1) "0" } 
          ["2017-06-28"]=&gt; object(stdClass)#6 (5) { ["1. open"]=&gt; string(7) "10.5600" ["2. high"]=&gt; string(7) "10.5600" ["3. low"]=&gt; string(7) "10.5600" ["4. close"]=&gt; string(7) "10.5600" ["5. volume"]=&gt; string(1) "0" } ...
  </code></pre>
  
  <p>But when I try to adress the array like</p>
  
  <pre><code>var_dump($jsonarray['Meta Data']);
  </code></pre>
  
  <p>It doesn't work.</p>