摘要:
<?php/** * wechat php test *///define your tokendefine("TOKEN", "weixin");$wechatObj = new wechatCallbackapiTest();$wechatObj->valid();class wechatCal 阅读全文
摘要:
<?php //程序运行时间 $starttime = explode(' ',microtime()); echo microtime(); /*········以下是代码区·········*/ for($i=0;$i<1000000;$i++){ $i; } /*······· 阅读全文
摘要:
array_merge_recursive() foreach($appo as $key=>$val) { if(!in_array($key,$H_name)) { $appo_n[$key]['appo'] = $appo[$key]; } } foreach($arrive as $key= 阅读全文
摘要:
自定义 public function index(Request $request) { $list = DB::table('auth_group')->where('status','!=','-1')->get()->toArray(); //dd($list); $perPage = 3; 阅读全文
摘要:
laravel5.5 1、laravel 查询数据库默认返回对象,如何改成 返回值为数组 答:在 App\Providers\EventServiceProvider 文件中 第一步: use Illuminate\Database\Events\StatementPrepared; 第二步: // 阅读全文
摘要:
<script> $(document).ready(function(e) { var counter = 0; if (window.history && window.history.pushState) { $(window).on('popstate', function () { win 阅读全文
摘要:
// 时间为当前是日期 $date = strtotime(date('Y-m-d',time())); //dd($date); //UNIX_TIMESTAMP('2006-11-04 12:23:00'); $where = "DATE_FORMAT(FROM_UNIXTIME(create_ 阅读全文
摘要:
//json 强制转换为array $arr[$key]['checkpro'] = json_decode($val['checkpro'],JSON_FORCE_ARRAY); $arr[$key]['messpro'] = json_decode($val['messpro'],JSON_FO 阅读全文