随笔分类 - php
摘要:<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
阅读全文
摘要:echo date('Y-m-01', strtotime('-1 month')); echo ""; echo date('Y-m-t', strtotime('-1 month')); echo "";
阅读全文
摘要: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('
阅读全文
摘要:/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...
阅读全文
摘要:<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(
阅读全文
摘要:switch ($date_type){ case 'yesterday': res_data = [ 's
阅读全文
摘要:strtolower(pathinfo(abs.php,PATHINFO_EXTENSION)); 小写 通过pathinfo返回扩展名 pathinfo() 函数以数组的形式返回文件路径的信息。 pathinfo(path,options) path:规定要检查的路径。 options:可选。规定
阅读全文
摘要:function array2object($array) { if (is_array($array)) { array as val){ key = $val; } } else { arr...
阅读全文
摘要:'; shuffle(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 ...
阅读全文
摘要:参考腾讯官方文档: http://kf.qq.com/faq/161222NneAJf161222U7fARv.html?pass_ticket=4K97qCCjgTaO4WwN1x%2BCdKEqLLpHfB1QG%2Fc0FvRawAXKsOxvyJSw2%2FmOg878QADx 微信支付是不
阅读全文
摘要:1、php-fpm优化参数介绍他们分别是:pm、pm.max_children、pm.start_servers、pm.min_spare_servers、pm.max_spare_servers。pm:表示使用那种方式,有两个值可以选择,就是static(静态)或者dynamic(动态)。在更老一
阅读全文