OutSCIRT

About
Documentation
Downloads

O__tableMaker

Purpose: To create an HTML table based on the provided outputs.

Type: Server-side function

Inputs:

  • $O__colLabels: An array of labels used for the column.
  • $O__data: An array with the actual data values.
  • $O__style: The class used to style the table.
  • $O__ID: The reference ID to the table.
  • $O__IDswitch: Set to 1 if you'd like the row number to be used as an ID on each row.

Outputs: A string with the rendered HTML table will be returned. It can be stored in a string or echoed right away.

Use Case: For creating a table to display a data or content set.

Examples:

  • Placing the system message into a new variable: $myDataTable = O__tableMaker($arrayPeople,$arrayData,"tableStyle","tablePeople",0);

Version Documented: 20180409