- 昵称:51助手
- 博龄:6年5个月23天
- 粉丝:122
- 关注:108
- +关注
搜索
文章分类
博客档案
php 获取月份的所有日期
摘要://$year 年 //$month 月 public function monthDate($year,$month){ $monthDate = array(); $mtime = strtotime($year.
post 提交json数据 去除addslashes的反斜杠
摘要:使用stripslashes函数 去除反斜杠$jsonData = json_decode(stripslashes($param['data']),true);
PHP取整,四舍五入取整、向上取整、向下取整、小数截取
摘要:php取整数函数常用的四种方法:1.直接取整,舍弃小数,保留整数:intval();2.四舍五入取整:round();3.向上取整,有小数就加1:ceil();4.向下取整:floor()。一、intval—对变数转成整数型态intval如果是字符型的会自动转换为0。intval(3.14159); //&n
微信小程序支付方法封装
摘要:每次搞微信支付都要翻微信开发文档,相当繁锁,有几个文档,还有点不一样,这次理清楚记录一下微信支付开发文档 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_1&index=1微信支付接口签名校验工具  
微信扫码关注登陆
摘要:1 服务器配置设置与开发-》基本配置2 获取access_token//$this->appid 微信appid //$this->AppSecret 微信AppSecret public
封装大文件分片上传函数
摘要:html<div> 上传<input id="myfile" type="file" name="myfile"/> </div> <div>上传进度:<span&nbs
服务器配置验证
摘要:接收get参数echostr,原样返回就可以了,至于要不要验证请参考官网//服务器配置验证 if(input('get.echostr')){ return input('get.echostr'); }
微信小程序引入的模块提示找不到...
摘要:在pages下 添加types目录,在添加index.d.ts declare module声明引入的模块
php 分片上传
摘要:html <div class="a"> 上传<input id="myfile" type="fil
tp5 input 防sql注入
摘要:E:\WWW\51c\config\app.php // 默认全局过滤方法 用逗号分隔多个 'default_filter' => 'htmlspecialchars,a