title: theme_table drupal development
body: <h1>update</h1>
  <p>I have made this table: I have 2 array's UGentArray and InternshipsArray. How can I set these in my table? instead of &quot;Row column 1 data&quot; and &quot;Row column 2 data&quot;. My question is: I want the values from UgentArray and InternshipArray as 2 columns under Each title UGentID and Internships</p>
  <pre><code>enter code here// Make table and display on screen.
  $tbl_header = array();
  $tbl_header[] = array(&quot;data&quot; =&gt; &quot;UGentID&quot;);
  $tbl_header[] = array(&quot;data&quot; =&gt; &quot;Internships&quot;);
  $tbl_row = array();    
  foreach($studentUGentID as $key =&gt; $value) {
      for($i = 0; $i&lt;count($value); $i++) {
          $tbl_row[] = $value[$i]['value'];
      }
  }
  $tbl_row[] = &quot;Row column 2 data&quot;;
  $tbl_rows = array();
  $tbl_rows[] = $tbl_row;    
  $html = theme_table($tbl_header,$tbl_rows);
  return $html;![enter image description here][1]
  </code></pre>
  <p><img src="https://i.stack.imgur.com/IRbhY.png" alt="enter image description here" /></p>