Processing math: 100%

09 2019 档案

摘要:sprintf('%.2f',$a) //强大的格式化函数 //结果为字符串 //小数点位数不够,填充0 阅读全文
posted @ 2019-09-29 09:23 盘思动 阅读(476) 评论(0) 推荐(0) 编辑
摘要:var tip_index = 0; $(document).on('mouseenter', '.layer_hover', function(){ var words = $(this).data('words'); tip_index = layer.tips(words, '.layer_hover', {time: 0}); }).on('mouseleave', '.layer_hov 阅读全文
posted @ 2019-09-27 15:47 盘思动 阅读(5630) 评论(1) 推荐(0) 编辑
摘要:<pre>array(0) {}</pre> <pre>array(2) { [0] =&gt; int(2) [1] =&gt; int(3)}</pre> 阅读全文
posted @ 2019-09-25 21:15 盘思动 阅读(359) 评论(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) 编辑
摘要:Linux查找含有特定字符串的文件命令为grep。以下为详细的使用方法 grep [OPTIONS] PATTERN [FILE...] #实例:递归查找当前文件夹下所有含有test的文件,并显示行号 grep -rn "test" * #显示匹配pattern1或pattern2的行grep pa 阅读全文
posted @ 2019-09-12 17:39 盘思动 阅读(8400) 评论(2) 推荐(1) 编辑
摘要:导出所有数据库数据(会导出到命令行当前所在目录下) mysqldump -u root -p --all-databases > alldb.sql 阅读全文
posted @ 2019-09-12 11:27 盘思动 阅读(397) 评论(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 盘思动 阅读(2915) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示