-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsample.php
19 lines (14 loc) · 964 Bytes
/
sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
include_once 'HTMLTable2JSON.php';
$helper = new HTMLTable2JSON();
// Standard Usage
$helper->tableToJSON('http://kdic.grinnell.edu/programs/schedule/');
// Explicitly filling some fields: These two samples are identical
//$helper->tableToJSON('http://kdic.grinnell.edu/programs/schedule/', TRUE, 'wp-table-reloaded-id-6-no-1', array(0 => 5));
//$helper->tableToJSON('http://kdic.grinnell.edu/programs/schedule/', NULL, NULL, array(0 => 5));
// Treating first row as data
//$helper->tableToJSON('http://lightswitch05.github.io/table-to-json/', FALSE);
// Using $testing
//$table = "<table id=\"test-table\"><thead><tr><th>First Name</th><th>Last Name</th><th>Points</th></tr></thead><tbody><tr><td>Jill</td><td>Smith</td><td>50</td></tr><tr><td>Eve</td><td>Jackson</td><td>94</td></tr><tr><td>John</td><td>Doe</td><td>80</td></tr></tbody></table>";
//$output = $helper->tableToJSON('', false, null, null, null, null, null, true, null, null, $table);
?>