摘要:
//本周时间 $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 阅读全文
摘要:
//生成临时路径 public function getTmpPathByContent($content) { static $tmpFile = null; $tmpFile = tmpfile(); fwrite($tmpFile, $content); $tempPemPath = stre 阅读全文
摘要:
public function curlUpload($url = '', $postData = '') { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $cfile = curl_file_create($postData['t 阅读全文
摘要:
wps接口对接地址:https://open.wps.cn/docs/signature/wps-3 <?php function http_post($url,$param,$header){ $oCurl = curl_init(); if(stripos($url,"https://")!== 阅读全文
摘要:
注意:本次测试用的thinkphp6做的测试,勿喷!!! public function index() { $t1 = microtime(true); $content = [ '2021年07月出生,家在河北', '2021年07月出生,家在河北', '2021年07月出生,家在陕西,幼时与张 阅读全文
摘要:
组装查询条件条件 注意这里store_ids是数组格式 if(isset($params['store_ids'])&&!empty($params['store_ids'])) { $store_ids=$params['store_ids']; $sql_where=''; foreach($s 阅读全文
摘要:
function getParents($id, $list,$parents = []) { //改变数组的key值 $list = array_column($list, NULL, 'id'); // echo "<pre>"; print_r($list);die; //改变后的数组 // 阅读全文
摘要:
一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_ 阅读全文
摘要:
一、数组 $categories = array( array('id'=>1,'name'=>'陕西','parent_id'=>0), array('id'=>2,'name'=>'西安','parent_id'=>1), array('id'=>3,'name'=>'长安区','parent_ 阅读全文