随笔分类 -  php

上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 阅读全文
posted @ 2018-02-28 19:09 盘思动 阅读(434) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-02-28 15:50 盘思动 阅读(191) 评论(0) 推荐(0)
摘要:$fileList = array( "site_upload/form_file_clause_extend/20180224/1519456901_1481718257.jpg", "site_upload/form_file_clause_extend/20180224/1519456901_1481718257.jpg" ... 阅读全文
posted @ 2018-02-24 17:13 盘思动 阅读(313) 评论(0) 推荐(0)
摘要:public function test_cny(){ echo $this->cny(44.55); } /*** *人民币大写转化;~~~未测试;~~~~ */ public function cny($ns) { static $cnums = array("零","壹","贰","叁","肆","伍",... 阅读全文
posted @ 2018-02-12 09:36 盘思动 阅读(268) 评论(0) 推荐(0)
摘要:ob_clean(); $realname = "姓名"; $schoolname = "学校"; $idcard = "身份证号"; $image = imagecreatefrompng('certification.png'); // 证书模版图片文件的路径 $red = imagecolorallocate($... 阅读全文
posted @ 2018-02-08 15:48 盘思动 阅读(194) 评论(0) 推荐(0)
摘要:http://www.thinkphp.cn/topic/30740.html 阅读全文
posted @ 2018-02-06 11:29 盘思动 阅读(382) 评论(0) 推荐(0)
摘要:$str = ' 1 '; $arr = array(); $xmlTag = array( 'appid','bank_type','cash_fee','fee_type','is_subscribe','mch_id', 'nonce_str','o... 阅读全文
posted @ 2018-01-31 10:08 盘思动 阅读(1514) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/shengyu-kmust/p/5228261.html https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_3 阅读全文
posted @ 2018-01-26 19:44 盘思动 阅读(275) 评论(0) 推荐(0)
摘要:上传表单 修改表单 ... 阅读全文
posted @ 2018-01-22 11:38 盘思动 阅读(5143) 评论(0) 推荐(0)
摘要:"Bill","Age"=>"60","Country"=>"USA"); print_r(array_values($a)); ?> Array ( [0] => Bill [1] => 60 [2] => USA ) 阅读全文
posted @ 2018-01-17 20:36 盘思动 阅读(178) 评论(0) 推荐(0)
摘要:json->setErr(10000,'缺少参数'); $this->json->Send(); } $user = M('user'); $tel_flag = $user->where(array('openid'=>$openid))->find(); if (!$tel_flag || !$tel_f... 阅读全文
posted @ 2018-01-17 19:58 盘思动 阅读(327) 评论(0) 推荐(0)
摘要:更多的情况下我们都是查询某些字段,但有些情况下面我们需要通过字段排除来更方便的查询字段,例如文章详细页,我们可能只需要排除status和update_time字段,这样就不需要写一堆的字段名称了(有些人可能觉得为什么不用“*”查询全部字段呢,不是更方便吗,但是有一点不可否认,即使列出所有字段也比查询所有字段的效率要高哦^_^),而新版的Model类的field方法可以支持排除(NOT)机制, 举... 阅读全文
posted @ 2018-01-12 16:03 盘思动 阅读(3002) 评论(0) 推荐(1)
摘要:echo floor(11/10); echo ceil(11/10); swiper 可以用在ajax的success中,如果用ejs拼接的,放ajax里面才可以轮播 阅读全文
posted @ 2018-01-05 16:51 盘思动 阅读(110) 评论(0) 推荐(0)
摘要:mysql> select id,avatar from tf_user; +----+--------------+ | id | avatar | +----+--------------+ | 1 | avatar_1.png | | 2 | avatar_6.png | | 3 | avatar_1.png | | 4 | avatar_5.png | | 5 | ... 阅读全文
posted @ 2017-12-26 10:27 盘思动 阅读(11353) 评论(0) 推荐(0)
摘要:date("l"); //date就可以获取英文的星期比如Sunday date("w"); //这个可以获取数字星期比如123,注意0是星期日 获取中文星期几: $weekarray=array("日","一","二","三","四","五","六"); //先定义一个数组 echo "星期".$weekarray[date("w")]; 获取指定日期是: $weekarra 阅读全文
posted @ 2017-12-22 21:17 盘思动 阅读(253) 评论(0) 推荐(0)
摘要:要在lnmp系统里面修改php.ini配置,首先要用find命令查找到php.ini所在位置: find / -name php.ini 查找结果如下: usr/local/php/etc/php.ini 然后用VI命令修改: vi /usr/local/php/etc/php.ini 修改后要重启 阅读全文
posted @ 2017-12-21 14:42 盘思动 阅读(192) 评论(0) 推荐(0)
摘要:https://cli.im/news/6527 实测有效 阅读全文
posted @ 2017-12-07 11:54 盘思动 阅读(671) 评论(0) 推荐(0)
摘要:http://pmd5.com/# 阅读全文
posted @ 2017-11-23 16:38 盘思动 阅读(248) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 12 下一页