Skip to main content

If you want to display the values in table format you can use Table theme
Example:- $form['table'] = array( '#theme' => 'table', '#header' => $header, '#rows' => $rows, '#empty' => t('Empty Rows') );

$form['table'] = array(
  '#theme' => 'table',
  '#header' => $header,
  '#rows' => $rows,
  '#empty' => t('Empty Rows')
  );

$header$header and $rows$rows would be arrays.

If you want to display the values in table format you can use Table theme
Example:- $form['table'] = array( '#theme' => 'table', '#header' => $header, '#rows' => $rows, '#empty' => t('Empty Rows') );

$header and $rows would be arrays

If you want to display the values in table format you can use Table theme
Example:-

$form['table'] = array(
  '#theme' => 'table',
  '#header' => $header,
  '#rows' => $rows,
  '#empty' => t('Empty Rows')
  );

$header and $rows would be arrays.

Source Link
Dharmender
  • 427
  • 5
  • 18

If you want to display the values in table format you can use Table theme
Example:- $form['table'] = array( '#theme' => 'table', '#header' => $header, '#rows' => $rows, '#empty' => t('Empty Rows') );

$header and $rows would be arrays