CareyTao

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2025年3月25日

摘要: // 写入文件 public function write($txt){ $filename = "example.txt"; $file = fopen($filename, "a") or die("Unable to open file!"); fwrite($file, $txt."\n") 阅读全文
posted @ 2025-03-25 17:02 CareyTao 阅读(12) 评论(0) 推荐(0)

2025年2月20日

摘要: $arr= preg_split("/(<[^>]+?>)/si",$str, -1,PREG_SPLIT_NO_EMPTY| PREG_SPLIT_DELIM_CAPTURE); 阅读全文
posted @ 2025-02-20 17:04 CareyTao 阅读(11) 评论(0) 推荐(0)

2024年5月11日

摘要: 查看镜像源地址: composer config -l 默认是国外地址,下载会很慢,甚至加载不出来。 切换成阿里云镜像: composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ 再次查看进项源: 阅读全文
posted @ 2024-05-11 10:31 CareyTao 阅读(2444) 评论(0) 推荐(0)

2023年12月12日

摘要: SELECT AUTO_INCREMENT id FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '表名' 阅读全文
posted @ 2023-12-12 14:04 CareyTao 阅读(43) 评论(0) 推荐(0)

2023年12月2日

摘要: 命令:composer require topthink/think-worker 错误信息: Problem 1 - Root composer.json requires topthink/think-worker ^4.0 -> satisfiable by topthink/think-wo 阅读全文
posted @ 2023-12-02 17:06 CareyTao 阅读(725) 评论(0) 推荐(0)

2023年4月8日

摘要: workerman版本3.5.18 php版本5.6.9 查看手册,说是必须和 Gateway::bindUid($client_uid, $uid) 使用,也就是绑定。 但是已经绑定了,再次发送消息,使用Gateway::isUidOnline($uid)判断时,返回0,在网上找了很多,觉得有可能 阅读全文
posted @ 2023-04-08 23:05 CareyTao 阅读(230) 评论(0) 推荐(0)

2023年3月5日

摘要: <?php /** * TP6使用PHPExcel */ use PHPExcel_IOFactory; //Excel模板 $template = './static/excel/Invoice10012ss.xls'; // new PHPExcel类,并传入模板路径 $objPHPExcel 阅读全文
posted @ 2023-03-05 23:18 CareyTao 阅读(104) 评论(0) 推荐(0)

2023年2月3日

摘要: bcadd — 将两个高精度数字相加 bccomp — 比较两个高精度数字,返回-1, 0, 1 bcdiv — 将两个高精度数字相除 bcmod — 求高精度数字余数 bcmul — 将两个高精度数字相乘 bcpow — 求高精度数字乘方 bcpowmod — 求高精度数字乘方求模,数论里非常常用 阅读全文
posted @ 2023-02-03 09:46 CareyTao 阅读(93) 评论(0) 推荐(0)

2022年7月28日

摘要: https://layui.yii666.com/doc/modules/layer.html 阅读全文
posted @ 2022-07-28 12:20 CareyTao 阅读(69) 评论(0) 推荐(0)

2022年7月10日

摘要: 思路:遍历二维数组,合并两个二维数组的值,赋值给新数组 function mergeArray($arr1,$arr2){ $newArr = []; foreach($arr1 as $v1){ foreach ($arr2 as $v2) { $newArr[] = array_merge($v 阅读全文
posted @ 2022-07-10 00:21 CareyTao 阅读(747) 评论(0) 推荐(0)