随笔- 452
文章- 302
评论- 28
阅读-
64万
随笔分类 - php
php usort() 根据预先数组字段值排序数组
摘要:<?php function my_sort($a,$b) { if ($a==$b) return 0; return ($a<$b)?-1:1; } $a=array(4,2,8,6); usort($a,"my_sort"); ?> 2 4 6 8 2, 返回: ,3, $a = [ 0 =>
阅读全文
php后台管理系统laravel7.2以上异常发送钉钉告警提醒
摘要:1,\app\Http\Middleware\目录下新增文件Monitor.php <?php namespace App\Http\Middleware; use Error; use Closure; use Exception; use Illuminate\Http\Request; use
阅读全文
larave模板中使用layui模板语法
摘要:<script id="tbmpl" type="text/html"> <%# layui.each(d.list, function(index, item){ %> <tr class="cgdAddTr datatr" frq_id="<%# item.frq_id %>"> <td cla
阅读全文
layui中输出php的json数组对象
摘要:<script> var cangku = {!!json_encode(config('field.Warehouse'))!!}; console.log(cangku);</script>
阅读全文
window安装php的mongodb扩展
摘要:查看phpinfo(); https://pecl.php.net/package/mongo mongo驱动选择1.6.0的版本 https://pecl.php.net/package/mongodb mongodb 1.1.8 for Windows 打开php.ini 找到位置添加 exte
阅读全文
获取小程序的手机号
摘要:* -41001: encodingAesKey 非法 * -41003: aes 解密失败 * -41004: 解密后得到的buffer非法 * -41005: base64加密失败 * -41016: base64解密失败 * */ class ErrorCode { public static $OK = 0; publ...
阅读全文
php 简单加密解密
摘要:0) && substr($result, 10, 16) == substr(md5(substr($result, 26) . $keyb), 0, 16) ) { return substr($result, 26); } else { return ''; } ...
阅读全文