摘要: //计算相差几个月 public function get_month_diff($start,$end) { $start = date('Y-m-d',$start); $end = date('Y-m-d',$end); $new_start = new \DateTime($start); 阅读全文
posted @ 2020-09-15 10:51 hjr_rong 阅读(267) 评论(0) 推荐(0) 编辑
摘要: function scerweima($url){ $path = 'upload/images'; if (!is_dir($path)) { mkdir($path, 0777, true); } include_once EXTEND_PATH.'phpqrcode/phpqrcode.php 阅读全文
posted @ 2020-06-17 14:42 hjr_rong 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1 array_reduce函数法 用array_reduce()函数是较为快捷的方法: $result = array_reduce($user, function ($result, $value) { return array_merge($result, array_values($valu 阅读全文
posted @ 2020-06-04 13:41 hjr_rong 阅读(1753) 评论(0) 推荐(0) 编辑
摘要: 1 array_reduce函数法 2 array_walk_recursive函数法 3 array_map函数法 假设有下面一个二维数组: $user = array( '0' => array('id' => 100, 'username' => 'a1'), '1' => array('id 阅读全文
posted @ 2020-05-11 15:55 hjr_rong 阅读(1643) 评论(0) 推荐(0) 编辑
摘要: https://www.easywechat.com/docs/4.1/wework/index 阅读全文
posted @ 2020-05-08 15:29 hjr_rong 阅读(216) 评论(0) 推荐(0) 编辑
摘要: is_bool();//判断是否为布尔型is_float(); //判断是否为浮点型is_int(); //判断是否为整型is_numeric(); //判断是否为数值型is_string(); //判断是否为字符串is_array(); //判断是否为数组is_object(); //判断是否为对 阅读全文
posted @ 2020-05-06 09:50 hjr_rong 阅读(309) 评论(0) 推荐(0) 编辑
摘要: insert into a(real_name,is_main,mobile,password,property_id,create_time) select linkman as real_name,'1',mobile,password,id as property_id,create_time 阅读全文
posted @ 2020-04-28 14:23 hjr_rong 阅读(936) 评论(0) 推荐(0) 编辑
摘要: //同步a表的数据到 b表UPDATE a t1 JOIN b t2 ON t1.finance_id = t2.idSET t1.a_id = t2.a_id,t1.b_name = t2.b_name,t1.ct_id = t2.c_id,t1.d_no = t2.d_no //更新同一个表的状 阅读全文
posted @ 2020-04-26 10:26 hjr_rong 阅读(284) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-09-12 19:25 hjr_rong 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 在使用php curl对接hugegraph的过程中,发现向gremlin发送结果返回乱码,截图如下: 发现返回乱码的乱码请求中有Accept-Encoding: gzip,即返回的内容采用了gzip压缩,所以需要在curl请求中加入 curl_setopt($curl, CURLOPT_ENCOD 阅读全文
posted @ 2019-09-12 16:38 hjr_rong 阅读(1744) 评论(0) 推荐(0) 编辑