Rendering a simple PHP array into an HTML table I am trying to render a simple PHP array witch isn't a drupal render array, basicly it s something like this: 

array(
  array(
    'Some Index:',
    ' Some value',
  ),
  array(
    'Some Index:',
    'Some value',
  )
);


I would like to render it as an HTML table, is there any out of the box API to do that ? 

Thank all for the help, 

Cheers
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.