摘要:
/^[0-9]+$/ 阅读全文
摘要:
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 (preg_match('/^[\x{4e00}-\x{9fa5}]+$/u',$str)){ echo '中文'; } else { echo 'no'; } 阅读全文
摘要:
<pre>array(3) { ["errno"] => string(1) "0" ["errmsg"] => string(2) "ok" ["save_name"] => st 阅读全文
摘要:
public function zip_download() { $array = array( 'http://local.qki.com/site_upload/erweima/20190826/1566809174292_100063_865373044010119.png', 'http://local.q... 阅读全文
摘要:
layer.confirm('请选择是否通过提现?(tips:同意直接打款,驳回不可恢复)', { btn : ['通过-打款','不通过','通过-已打款'], btn1:function(){ ... 阅读全文