随笔分类 -  php

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要:<pre>array(0) {}</pre> <pre>array(2) { [0] =&gt; int(2) [1] =&gt; int(3)}</pre> 阅读全文
posted @ 2019-09-25 21:15 盘思动 阅读(362) 评论(0) 推荐(0) 编辑
摘要:date('t') 阅读全文
posted @ 2019-09-20 18:40 盘思动 阅读(146) 评论(0) 推荐(0) 编辑
摘要:Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 ) Array ( [0] => 6 [1] => 1 [2] => 3 [3] => 2 [4] => 5 [5] => 7 [6] => 阅读全文
posted @ 2019-09-20 11:44 盘思动 阅读(130) 评论(0) 推荐(0) 编辑
摘要:/^[0-9]+$/ 阅读全文
posted @ 2019-09-18 14:03 盘思动 阅读(2465) 评论(0) 推荐(0) 编辑
摘要:SELECT `id`,`status`,`short_place`,`merchant_id`,`putin_time` FROM `tf_machine` WHERE `status` = 1 AND `merchant_id` <> 0 AND ( `short_place` like '%蚂蚁极致网络会所%' OR place like '%蚂蚁极致网络会所%' ) ORDER BY sa 阅读全文
posted @ 2019-09-17 14:12 盘思动 阅读(164) 评论(0) 推荐(0) 编辑
摘要:echo date('Y-m-01', strtotime('-1 month')); echo ""; echo date('Y-m-t', strtotime('-1 month')); echo ""; 阅读全文
posted @ 2019-09-06 18:14 盘思动 阅读(154) 评论(0) 推荐(0) 编辑
摘要:beginToday=mktime(0,0,0,date(m),date(d),date(Y));endToday = mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1; //php获取昨日起始时间戳和结束时间戳 $beginYesterday = mktime(0,0,0,date('m'),date('d')-1,date(' 阅读全文
posted @ 2019-09-06 15:02 盘思动 阅读(426) 评论(0) 推荐(0) 编辑
摘要:str=;if(pregmatch(/[\x4e00\x9fa5]+/u',$str)){ echo '中文'; } else { echo 'no'; } 阅读全文
posted @ 2019-09-04 11:25 盘思动 阅读(395) 评论(0) 推荐(0) 编辑
摘要:<pre>array(3) { [&quot;errno&quot;] =&gt; string(1) &quot;0&quot; [&quot;errmsg&quot;] =&gt; string(2) &quot;ok&quot; [&quot;save_name&quot;] =&gt; st 阅读全文
posted @ 2019-09-03 16:53 盘思动 阅读(2922) 评论(0) 推荐(0) 编辑
摘要:public function zip_download() { $array = array( 'http://local.qki.com/site_upload/erweima/20190826/1566809174292_100063_865373044010119.png', 'http://local.q... 阅读全文
posted @ 2019-08-27 18:18 盘思动 阅读(432) 评论(0) 推荐(0) 编辑
摘要:<pre> array(8) { [0] => string(1) 2 [1] => string(2) 19 [2] => string(2) 18 [3] => string(2) 17 [4] => string(2) 16 [5] => string(2) 14 [6] => string( 阅读全文
posted @ 2019-08-21 11:54 盘思动 阅读(625) 评论(0) 推荐(0) 编辑
摘要:num=10.4567;//round()echoround(num,2); //10.46 //第二种:利用sprintf格式化字符串 formatnum=sprintf("num); echo $format_num; //10.46 /... 阅读全文
posted @ 2019-08-17 00:30 盘思动 阅读(3907) 评论(0) 推荐(0) 编辑
摘要:switch ($date_type){ case 'yesterday': resdata=[starttime=>strtotime(date(Ymd,time()))243600,endtime=>strtotime(date(Ymd,time()))];break;casetoday:res_data = [ 's 阅读全文
posted @ 2019-08-17 00:29 盘思动 阅读(172) 评论(0) 推荐(0) 编辑
摘要:<?php //对数组中的每个元素做函数处理 arr=array(1,2,3,4,5,6);functioncheng(hah){ return hah*2; } var_dump(array_map('cheng',arr)); 阅读全文
posted @ 2019-08-11 13:01 盘思动 阅读(134) 评论(0) 推荐(0) 编辑
摘要:strtolower(pathinfo(abs.php,PATHINFO_EXTENSION)); 小写 通过pathinfo返回扩展名 pathinfo() 函数以数组的形式返回文件路径的信息。 pathinfo(path,options) path:规定要检查的路径。 options:可选。规定 阅读全文
posted @ 2019-08-11 10:32 盘思动 阅读(570) 评论(0) 推荐(0) 编辑
摘要:function array2object($array) { if (is_array($array)) { obj=newStdClass();foreach(array as key=>val){ obj>key = $val; } } else { obj=arr... 阅读全文
posted @ 2019-07-17 18:28 盘思动 阅读(417) 评论(0) 推荐(0) 编辑
摘要:'; shuffle(arr);printr(arr); ?> Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7] => 8 ) Array ( [0] => 6 [1] => 1 [2] => 3 [3] => 2 [4] => 5 [5] => 7 [6] => 8 [7] => 4 ... 阅读全文
posted @ 2019-07-17 17:09 盘思动 阅读(293) 评论(0) 推荐(0) 编辑
摘要:参考腾讯官方文档: http://kf.qq.com/faq/161222NneAJf161222U7fARv.html?pass_ticket=4K97qCCjgTaO4WwN1x%2BCdKEqLLpHfB1QG%2Fc0FvRawAXKsOxvyJSw2%2FmOg878QADx 微信支付是不 阅读全文
posted @ 2019-07-16 10:48 盘思动 阅读(5594) 评论(0) 推荐(0) 编辑
摘要:1、php-fpm优化参数介绍他们分别是:pm、pm.max_children、pm.start_servers、pm.min_spare_servers、pm.max_spare_servers。pm:表示使用那种方式,有两个值可以选择,就是static(静态)或者dynamic(动态)。在更老一 阅读全文
posted @ 2019-07-13 11:53 盘思动 阅读(799) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
点击右上角即可分享
微信分享提示