会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
浪、子
科技改变世界!
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2022年10月10日
php 获取今日、昨日、本周、上周、本月、上月等的时间戳方法
摘要: //本周时间 $now_start_time =mktime(0,0,0,date('m'),date('d')-date('w')+1,date('Y')); $now_end_time =mktime(0,0,0,date('m'),date('d')-date('w')+1+7,date('Y
阅读全文
posted @ 2022-10-10 14:54 浪、子
阅读(60)
评论(0)
推荐(0)
2022年9月30日
php 微信退款证书支持CURL字符串证书传输
摘要: //生成临时路径 public function getTmpPathByContent($content) { static $tmpFile = null; $tmpFile = tmpfile(); fwrite($tmpFile, $content); $tempPemPath = stre
阅读全文
posted @ 2022-09-30 10:21 浪、子
阅读(27)
评论(0)
推荐(0)
2022年4月9日
php利用curl上传图片
摘要: public function curlUpload($url = '', $postData = '') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $cfile = curl_file_create($postData['t
阅读全文
posted @ 2022-04-09 11:26 浪、子
阅读(355)
评论(0)
推荐(0)
2022年3月30日
php wps接口对接以及加密签名验证
摘要: wps接口对接地址:https://open.wps.cn/docs/signature/wps-3 <?php function http_post($url,$param,$header){ $oCurl = curl_init(); if(stripos($url,"https://")!==
阅读全文
posted @ 2022-03-30 09:35 浪、子
阅读(567)
评论(1)
推荐(0)
2021年12月18日
php批量插入数据实测200万数据只需700多秒
摘要: 注意:本次测试用的thinkphp6做的测试,勿喷!!! public function index() { $t1 = microtime(true); $content = [ '2021年07月出生,家在河北', '2021年07月出生,家在河北', '2021年07月出生,家在陕西,幼时与张
阅读全文
posted @ 2021-12-18 17:58 浪、子
阅读(579)
评论(0)
推荐(0)
2021年12月17日
thinkphp6实现关联多个id以逗号分开查询数据
摘要: 组装查询条件条件 注意这里store_ids是数组格式 if(isset($params['store_ids'])&&!empty($params['store_ids'])) { $store_ids=$params['store_ids']; $sql_where=''; foreach($s
阅读全文
posted @ 2021-12-17 17:31 浪、子
阅读(1811)
评论(0)
推荐(0)
php 获取当前分类id所有上级分类id
摘要: function getParents($id, $list,$parents = []) { //改变数组的key值 $list = array_column($list, NULL, 'id'); // echo "<pre>"; print_r($list);die; //改变后的数组 //
阅读全文
posted @ 2021-12-17 16:02 浪、子
阅读(587)
评论(0)
推荐(0)
php递归实现无限极分类
摘要: 一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_
阅读全文
posted @ 2021-12-17 10:39 浪、子
阅读(327)
评论(0)
推荐(0)
php非递归实现无限极分类
摘要: 一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_
阅读全文
posted @ 2021-12-17 10:17 浪、子
阅读(313)
评论(0)
推荐(0)
2019年7月6日
php统计大全
摘要: $ admin_id=Session::get('admin.id');//登陆id $group_id=Session::get('admin.group_id');//角色id 角色为1 可以看到所有的 // print_r($admin_id); // print_r('-----------------'); // ...
阅读全文
posted @ 2019-07-06 13:47 浪、子
阅读(432)
评论(0)
推荐(0)
1
2
下一页
公告