09 2019 档案
摘要:sprintf('%.2f',$a) //强大的格式化函数 //结果为字符串 //小数点位数不够,填充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
阅读全文
摘要:<pre>array(0) {}</pre> <pre>array(2) { [0] => int(2) [1] => int(3)}</pre>
阅读全文
摘要: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] =>
阅读全文
摘要: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
阅读全文
摘要:Linux查找含有特定字符串的文件命令为grep。以下为详细的使用方法 grep [OPTIONS] PATTERN [FILE...] #实例:递归查找当前文件夹下所有含有test的文件,并显示行号 grep -rn "test" * #显示匹配pattern1或pattern2的行grep pa
阅读全文
摘要:导出所有数据库数据(会导出到命令行当前所在目录下) mysqldump -u root -p --all-databases > alldb.sql
阅读全文
摘要:echo date('Y-m-01', strtotime('-1 month')); echo ""; echo date('Y-m-t', strtotime('-1 month')); echo "";
阅读全文
摘要: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('
阅读全文
摘要:str=′中′;if(pregmatch(′/[\x4e00−\x9fa5]+/u',$str)){ echo '中文'; } else { echo 'no'; }
阅读全文
摘要:<pre>array(3) { ["errno"] => string(1) "0" ["errmsg"] => string(2) "ok" ["save_name"] => st
阅读全文