title: Can I get an example please?
body: <pre><code>$starcraft = array(  
      "drone" =&gt; array(   "cost" =&gt; "6_0-", 
                          "gas" =&gt; "192",
                          "minerals" =&gt; "33",
                          "attack" =&gt; "123",
  
                      )
      "zealot" =&gt; array(  "cost" =&gt; "5_0-", 
                          "gas" =&gt; "112",
                          "minerals" =&gt; "21",
                          "attack" =&gt; "321",
                      )               
  )
  </code></pre>
  
  <p>I'm playing with oop and I want to display the information in this array using a class, but I don't know how to construct the class to display it. </p>
  
  <p>This is what I have so far, and I don't know where to go from here. Am I supposed to use setters and getters?</p>
  
  <pre><code>class gamesInfo($game) {
      $unitname;
      $cost;
      $gas;
      $minerals;
      $attack;
  }
  </code></pre>