2016年2月16日

PHPExcel从数据库导出数据

摘要: 话不多说,直接上代码。 $this->load->library('PHPExcel'); $this->load->library('PHPExcel/IOFactory'); $objExcel = new PHPExcel(); //获得当前sheet操作对象 $objSheet = $obj 阅读全文

posted @ 2016-02-16 14:39 飞羽哥哥 阅读(432) 评论(0) 推荐(0)

用PHP脚本来拆分字符串并形成两个新字段

摘要: //控制器中$kindlist = $this->kindgarten->getKindgartenList(); foreach($kindlist as $key=>$val) { $arr = explode(",",$val['kgPosition']); $updateArr = arra 阅读全文

posted @ 2016-02-16 13:51 飞羽哥哥 阅读(924) 评论(0) 推荐(0)

PHPExcel导出数据的基本使用方法

摘要: 1 <?php 2 //引入excel文件 3 include "Phpexcel/Phpexcel.php"; 4 include "Phpexcel/Phpexcel/Writer/Excel2007.php"; 5 //实例化对象 6 $objExcel = new PHPExcel(); 7 阅读全文

posted @ 2016-02-16 11:15 飞羽哥哥 阅读(282) 评论(0) 推荐(0)

导航