title: PHP parse var_dump json
body: <p>I have a script that get data from a JSON-API.</p>
  
  <p><code>echo var_dump(json_decode($result, true));</code> this displays:</p>
  
  <pre><code>hejarray(1) { 
    ["items"]=&gt; array(2) {
          ["item"]=&gt; array(1) { 
                [0]=&gt; array(23) { 
                      ["newsdeskML"]=&gt; string(3) "2.1"                                                                           
                      ["type_of_media"]=&gt; string(12) "pressrelease"       
                      ["language"]=&gt; string(2) "sv" 
                      ["source_id"]=&gt; string(5) "47784"             
                      ["source_name"]=&gt; string(24) "Sverige AB" 
                      ["pressroom_name"]=&gt; string(24) "Sverige AB" 
                      ["pressroom"]=&gt; string(2) "se" 
                      ["pressroom_id"]=&gt; string(5) "53128"             
                      ["organization_number"]=&gt; string(11) "556052-5833" 
                      ["id"]=&gt; string(6) "968485" 
                      ["url"]=&gt; string(126) "xx.com" 
                      ["published_at"]=&gt; string(19) "2014-03-05 08:08:33"               ["created_at"]=&gt; string(19) "2014-03-05 08:08:33"       
                      ["updated_at"]=&gt; string(19) "2014-03-05 08:08:34"       
                      ["header"]=&gt; string(56) "header header" 
                      ["summary"]=&gt; string(277) "text text".........
  </code></pre>
  
  <p>If i only want to echo the content in <code>["summary"]=&gt; string(277) "text text"</code> how can this be done?</p>
  
  <p>EDIT
  Full json reponse, had to remove contest as it's sensetive data:</p>
  
  <pre><code>{  
     "items":{  
        "item":[  
           {  
              "newsdeskML":"2.1",
              "type_of_media":"pressrelease",
              "language":"sv",
              "source_id":"47784",
              "source_name":"",
              "pressroom_name":"",
              "pressroom":"se",
              "pressroom_id":"",
              "organization_number":"",
              "id":"968485",
              "url":"",
              "published_at":"2014-03-05 08:08:33",
              "created_at":"2014-03-05 08:08:33",
              "updated_at":"2014-03-05 08:08:34",
              "header":"",
              "summary":"",
              "body":""
           },
           {  
              "related_items":null
           }
        ]
     }
  }
  </code></pre>
  
  <p>This gives the same php output i posted at first:</p>
  
  <p>$var = json_decode($result, true);
  echo var_dump($var);</p>
  
  <p>But echo var_dump($var['items']); gives null</p>