Table Constructor
Package:
Summary:
Display an HTML table from array, JSON or XML
Groups:
Author:
Description:
This class can be used to display an HTML table from array, JSON or XML.
It can traverse data from an array and generate an HTML table that displays that data.
It can also read data from a JSON or XML file and convert it into an array so it can also be displayed in an HTML table.
1. Simply to use
new Table ($data); // work with array
new Table ('data.json', 'json-file');
new Table ($json_string, 'json'); // work with json-string
new Table ('data.xml', 'xml-file'); // work with xml-file
new Table ($xml_string, 'xml'); // work with xml-string
2. Universal: array, xml, json
3. Quick
It can traverse data from an array and generate an HTML table that displays that data.
It can also read data from a JSON or XML file and convert it into an array so it can also be displayed in an HTML table.
1. Simply to use
new Table ($data); // work with array
new Table ('data.json', 'json-file');
new Table ($json_string, 'json'); // work with json-string
new Table ('data.xml', 'xml-file'); // work with xml-file
new Table ($xml_string, 'xml'); // work with xml-string
2. Universal: array, xml, json
3. Quick
Comments are closed.