title: What does [ ] and [0] mean in php with arrays?
body: <p>I'm using wordpress and I"m grabbing a custom taxonomy and the code I'm using is </p>
  
  <pre><code>$terms = get_the_terms($HeroID, 'hero-universe' );
  foreach ( $terms as $term ) {
      $franchise_slug[] = $term-&gt;slug; // this grabs the hyphenated slug
      $franchise_name[] = $term-&gt;name; // this grabs the actual name
  }
  </code></pre>
  
  <p>Than to display the custom taxonomy I use </p>
  
  <pre><code>&lt;?php echo $franchise_name[0]; ?&gt;
  </code></pre>
  
  <p>I was wondering what the brackets are for and why do I use the number 0? It seems that if I take the brackets away from both the  $franchise_name[] and $franchise_slug[] that it works properly too so what is the reason for them? </p>
  
  <p>Thank you.</p>