title: JSON sub array - PHP decode
body: <p>I have a JSON feed and within the feed, there is an array inside the feed, I can output everything above the array correctly.</p>
  
  <p>JSON feed output: <a href="http://pastebin.com/pxiFVm1d" rel="nofollow">http://pastebin.com/pxiFVm1d</a></p>
  
  <p>Code used to output:</p>
  
  <pre><code>$jsonurl = "LINK to feed";
  $json = file_get_contents($jsonurl,0,null,null);
  $json_output = json_decode($json);
  
  foreach ( $json_output-&gt;results as $results )
  {
      echo "{$results-&gt;name}.&lt;br /&gt;";
  }
  </code></pre>
  
  <p>How do I output the <code>photo_rerence</code> which is part of the array (see pastebin)?</p>