title: PHP: Why is there 2 '->' in this code?
body: <p>This code is from Drupal 7 php and is as follows: </p>
  
  <pre><code>if (!empty($data-&gt;_field_data['nid']['entity']-&gt;field_inst_address['und'][0]['administrative_area'])) {
        echo $data-&gt;_field_data['nid']['entity']-&gt;field_inst_address['und'][0]['administrative_area'];
  } else echo " ";
  </code></pre>
  
  <p>I"m confused about this: </p>
  
  <p>There is 2 <strong>-></strong> signs. From my understanding, when you have a array, you can use key-value pairs and the => sign would separate them. The same is true for objects. </p>
  
  <p>But why does this code have 2 on the same line, rather than just 1? Is this a multi-dimensional array thing going on? Can someone explain it please? Thank you. </p>