欢迎各位兄弟 发布技术文章
这里的技术是共享的
require __DIR__.'/table.php';
$table = new table(
array(
'header'=>array('ISBN', 'Title', 'Author'),
'rows'=>array(
array('99921-58-10-7', 'Divine Comedy', 'Dante Alighieri'),
array('9971-5-0210-0', 'A Tale of Two Cities', 'Charles Dickens'),
array('960-425-059-0', 'The Lord of the Rings', 'J. R. R. Tolkien'),
array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
)
)
);
$a = $table->render();//这样会直接输出
//$a = $table->render(0); 这样是返回字符串
复制代码