tp5.1
哲学家乔布斯
这个作者很懒,什么都没留下…
展开
-
tp5.1 Workerman安装使用 配置 Workerman使用
tp5.1 Workermana安装使用 配置原创 2023-01-03 10:44:26 · 1571 阅读 · 1 评论 -
查询多条数据where id=某字符串(例如1,2,3,4) find_in_set (tp、源码用法)用法
TP5.1.22版本 $id=4; Db::name('menu')->where('FIND_IN_SET(:id,pid_all)',['id' => $id])->update([$field => $title]); 数组用法 $map[]=['exp','FIND_IN_SET(2,needID)']; $db->where($map)->select(); TP5.1.21 版本之后数组查询支持: 要达到这样子查询: 1、首先引...原创 2020-05-25 15:42:53 · 1585 阅读 · 0 评论 -
Tp5.1使用导出Excel
首先安装 composer 链接地址https://www.phpcomposer.com/ composer require phpoffice/phpexcel 一:引入 use PHPExcel; use PHPExcel_IOFactory; 二:使用 $objPHPExcel = new \PHPExcel(); // 设置sheet $...原创 2019-05-06 13:28:52 · 2002 阅读 · 0 评论