Rendering a simple PHP array into an HTML table
Assume you have code similar to this:

$table_data = array(
  array( 'Some Index', 'Some value'),
  array( 'Some Index', 'Some value'),
);


In this case, just call theme('table', array('header' =&gt; array(), 'rows' =&gt; $table_data));.

This will call theme_table(), unless your theme overrides that particular theming function. Any override, however, should expect the array to be structured in the same way as described for theme_table(), so look there about the specifics. In particular, you might want to replace 'Some Index' with array('data' =&gt; 'Some Index', 'header' =&gt; TRUE) to indicate that this cell is a table header cell.