文件名称:phpExcel二次封装简单调用备用留存
文件大小:861KB
文件格式:RAR
更新时间:2022-01-09 03:45:17
phpExcel
phpExcel二次封装简单调用备用留存,$page_dates = "数据库数据" $title = array('序号1','序号2','序号3','序号4','序号5','头像'); //标题 $width = array('16','16','20','20','20','20'); //设置 $content = array(); foreach($page_dates as $k=>$val){ $content[$k][0] = $val[序号1值]; $content[$k][1] = $val[序号2值]; $content[$k][2] = $val[序号3值]; $content[$k][3] = $val[序号4值]; $content[$k][4] = $val[序号5值]; $face_img = $val[头像]; $content[$k][5] = $face_img?$face_img.'%hlx_excel%img':''; //图片这样调取 } setValue($title,$content,$width);