hxzlhby/arr2table

arr2table

1.0.1 2020-11-02 09:08 UTC

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;