上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: 原文:https://blog.csdn.net/qq_38253837/article/details/80340505 COW(copy on write) 写时复制,是内存优化的常见手段,在php中也采用了这种方式来优化内存。 即只有当对其中一个或多个变量进行写操作的时候,才会复制一份内存,对 阅读全文
posted @ 2021-03-17 14:50 pine007 阅读(137) 评论(0) 推荐(0)
摘要: 原文:https://www.cnblogs.com/ricklz/p/9263439.html 概念 多态性是指相同的操作或函数、过程可作用于多种类型的对象上并获得不同的结果。不同的对象,收到同一消息将可以产生不同的结果,这种现象称为多态性。 多态性允许每个对象以适合自身的方式去响应共同的消息。多 阅读全文
posted @ 2021-03-15 15:34 pine007 阅读(98) 评论(0) 推荐(0)
摘要: mysql left join 出现的结果会重复 原文:https://www.cnblogs.com/ampl/p/9081746.html left join 基本用法 MySQL left join 语句格式 A LEFT JOIN B ON 条件表达式 left join 是以A表为基础,A 阅读全文
posted @ 2021-01-24 15:07 pine007 阅读(534) 评论(0) 推荐(0)
摘要: Laravel 创建自己的 Facade 原文:https://segmentfault.com/a/1190000009759459 前言 laravel 提供了一个灵活的模式,那就是 facade 。框架内部的 DB、Auth、File 等功能也有相关的 facade 实现。那么,该如何写自己的 阅读全文
posted @ 2021-01-19 16:05 pine007 阅读(394) 评论(0) 推荐(0)
摘要: sql查询一些数据进行正序排序,除外的数据进行倒序排序 原文:https://blog.csdn.net/u012934723/article/details/53185216 1)排序:募集进度(默认显示) | 发布时间 | 项目规模 2)排序逻辑:默认为“募集进度”筛选,投资完成的标的靠后排列, 阅读全文
posted @ 2021-01-07 10:38 pine007 阅读(1330) 评论(0) 推荐(0)
摘要: 让Json更懂中文(JSON_UNESCAPED_UNICODE 原文:https://www.laruence.com/tag/json_unescaped_unicode 我们知道, 用PHP的json_encode来处理中文的时候, 中文都会被编码, 变成不可读的, 类似"\u***"的格式, 阅读全文
posted @ 2020-12-21 15:45 pine007 阅读(146) 评论(0) 推荐(0)
摘要: public function test() { $test = request()->input('test','this is test !!!'); dd($test); } 请求时,没有test参数字段时,$test='this is test !!!' 请求时,test参数为空时,$tes 阅读全文
posted @ 2020-12-11 16:13 pine007 阅读(963) 评论(0) 推荐(0)
摘要: mysql 一张表同步另一张表的数据 -- 将一张表的数据同步插入到另一张表 INSERT INTO table1 ( order_id, member_id ) SELECT order_id, newcomer_id FROM table2; -- 将一张表的数据同步更新到另一张表 UPDATE 阅读全文
posted @ 2020-11-19 17:58 pine007 阅读(2633) 评论(0) 推荐(0)
摘要: 最全的SQL练习题(做完你就是高手) 原文:https://zhuanlan.zhihu.com/p/257977231 补充作业一 设有三个关系: S(SNO, SNAME, AGE, SEX,Sdept) SC(SNO, CNO, GRADE) C(CNO, CNAME, TEACHER) 试用 阅读全文
posted @ 2020-10-28 17:23 pine007 阅读(1469) 评论(0) 推荐(0)
摘要: php 清除多维数组里面的空值 /** * array_filter_recursive 清除多维数组里面的空值 * @param array $array * @return array */ function array_filter_recursive(array &$arr) { if (c 阅读全文
posted @ 2020-09-30 14:55 pine007 阅读(707) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页