上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: truecontains() 方法 类似于 php函数 in_array() 通过 collect 实例一个集合 来判断是否包含值 若是二维数组 需要指定 键值对 同时比较 返回true $collection = collect([1, 2, 3, 6]); $data = $collection 阅读全文
posted @ 2019-03-11 09:35 迷失在路上 阅读(390) 评论(0) 推荐(0) 编辑
摘要: collapse 方法 不去重合并 阅读全文
posted @ 2019-03-11 09:30 迷失在路上 阅读(507) 评论(0) 推荐(0) 编辑
摘要: distinct -- 去重查询 他是指行与行之间的去重 意味着 他 会比较所有行中 你查询的字段是否相同 相同则去重 阅读全文
posted @ 2019-03-11 09:12 迷失在路上 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-06 16:57 迷失在路上 阅读(3343) 评论(0) 推荐(0) 编辑
摘要: preg_quote 转义正则表达式字符(向正则表达式语法中的字符前增加一个反斜线)(如下的例子中则是将*very*变成\*very\*),返回转义后的字符串。 $textbody = "This book is *very* difficult to find."; $word = "*very* 阅读全文
posted @ 2019-03-06 09:05 迷失在路上 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 主要函数有:bcadd — 将两个高精度数字相加bccomp — 比较两个高精度数字,返回-1, 0, 1bcdiv — 将两个高精度数字相除bcmod — 求高精度数字余数bcmul — 将两个高精度数字相乘bcpow — 求高精度数字乘方bcpowmod — 求高精度数字乘方求模,数论里非常常用 阅读全文
posted @ 2019-02-28 17:58 迷失在路上 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1/ 创建jobphp artisan make:job SendReminderEmail --queued2/ 设定运行时间 失败次数 3/ 数据处理 4/ 开启本地redis 设置queue.php 队列配置 5/ 监听 php artisan queue:listen --queue="队列 阅读全文
posted @ 2019-02-26 11:34 迷失在路上 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1/ 下载扩展包 composer require intervention/image 2/ 修改app.php 3/ 引入use Intervention\Image\Facades\Image; 4/ 数据处理 // 添加水印 阅读全文
posted @ 2019-02-25 15:26 迷失在路上 阅读(348) 评论(0) 推荐(0) 编辑
摘要: function http_get_imgData($url) { $ch = curl_init (); curl_setopt ( $ch, CURLOPT_CUSTOMREQUEST, 'GET' ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, fa 阅读全文
posted @ 2019-02-25 10:21 迷失在路上 阅读(319) 评论(0) 推荐(0) 编辑
摘要: function to_unicode($string) { $str = mb_convert_encoding($string, 'UCS-2', 'UTF-8'); $arrstr = str_split($str, 2); $unistr = ''; foreach ($arrstr as 阅读全文
posted @ 2019-02-25 09:23 迷失在路上 阅读(1150) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页