title: Getting values from database as in Array
body: <p>I am fetching data from database in array form. There are two raws in database. 1) groupID 2) groupname. And I used</p>
  
  <pre><code>SELECT * FROM table;
  </code></pre>
  
  <p>I used this,</p>
  
  <pre><code>foreach($get_group as $key =&gt; $element){
          echo "$element";
  }
  </code></pre>
  
  <p>In that case I am getting 'Array' as output everytime (depends on howmany elements are there)</p>
  
  <p>I am not getting actual content of the array.</p>
  
  <p>I tried by using $element[0] but no results..</p>