title: How to acess nested json object with json_decode
body: <p>I have parsed api request in json format with php function json_decode with this</p>
  
  <pre><code>$obj = json_decode($json);
  </code></pre>
  
  <p>where <code>$json</code> is my json response. I can echo page number easily with</p>
  
  <pre><code>echo "Page number: ".$obj-&gt;{'data'}-&gt;{'page_number'}."&lt;/br&gt;";
  </code></pre>
  
  <p>I want to echo for example imdb code. I tried like this but nothing shows.</p>
  
  <pre><code>echo "IMDB Code: ".$obj-&gt;{'data'}-&gt;{'movies'}-&gt;{'imdb_code'}."&lt;/br&gt;";
  </code></pre>
  
  <p>Here is my json response</p>
  
  <pre><code>{
  "status":"ok",
  "status_message":"Query was successful",
  "data":{
     "movie_count":1,
     "limit":1,
     "page_number":1,
     "movies":[
        {
        "id":4839,
        "url":"https:\/\/yts.ag\/movie\/the-walk-2015",
        "imdb_code":"tt3488710",
        "title":"The Walk",
        "title_english":"The Walk",
        "title_long":"The Walk (2015)",
        "slug":"the-walk-2015",
        "year":2015,
        "rating":7.6,
        "runtime":123,
  </code></pre>
  
  <p>Any suggestions how to do it?</p>