//导出excel格式表 public function exportData($filename, $title, $data) { header("Content-type: application/vnd.ms-excel"); header("Content-disposition: attachment; filename=" . $filename . ".xls"); if (is_array($title)) { foreach ($title as $key => $value) { echo $value."\t"; } } echo "\n"; if (is_array($data)) { foreach ($data as $key => $value) { foreach ($value as $_key => $_value) { echo $_value."\t"; } echo "\n"; } } }
快捷导出 excel 表
猜你喜欢
转载自blog.csdn.net/yu_20170610/article/details/89948482
今日推荐
周排行