title: How to echo an array with -> association pointers PHP
body: <p>How would I echo such a thing?</p>
  
  <pre><code>$referrals = affiliate_wp()-&gt;referrals-&gt;get_referrals( array( 'affiliate_id' =&gt; $affiliate_id,) );
  </code></pre>
  
  <p>If I just do:</p>
  
  <pre><code>echo $referrals;
  </code></pre>
  
  <p>it returns the value:</p>
  
  <pre><code>Array
  </code></pre>
  
  <p>I thought this was the proper Syntax:</p>
  
  <pre><code>echo $get_referrals[0]['affiliate_id'];
  </code></pre>
  
  <p>I just don't think I understand the <code>-&gt;</code> association pointers correctly.</p>