hxzlhby / arr2table
arr2table
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:1
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-09-04 16:24:25 UTC
README
专为 email 发送可视化表格设计
DEMO
$data = [
['单个表格'],
['标题1', '标题2', '标题3'],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]
];
$table = Arr2Table::oneTable($data);
echo $table;
$data2 = [
[
['多个表格1'],
['标题1', '标题2', '标题3'],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]
],
[
['多个表格2'],
['标题1', '标题2', '标题3'],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3]
]
];
$table2 = Arr2Table::moreTable($data2);
echo $table;