PHP
奇玄君
这个作者很懒,什么都没留下…
展开
-
ThinkPHP数据查询条件及方法的使用
普通查询#1.字符串形式//'id'>5 and id<9 在SQL语句当中写的基本形式也是字符串形式 $user=M('user’); $str = “‘id’> 5 and ‘id' <9”; $liset=$user->where($str)->select();#2.数组形式 $user=M('user'); ...原创 2018-12-13 13:56:17 · 1117 阅读 · 0 评论 -
Thinkphp二维码生成类QRcode
Rcode二维码生成类QRcode.class.php<?php import('@.Org.QRcode');//thinkphp include_once('QRcode.class.php'); QRcode::png('url:http://www.leipi.org', './test.png', 'L',4, 2); ?> 类下载...转载 2018-12-14 23:16:45 · 482 阅读 · 0 评论 -
PHP(BC函数库)高精确度可续运算实例详解
php BC高精确度函数库php bc math 包含了:相加,比较,相除,相减,求余,相乘,n次方,配置默认小数点数目,求平方这些函数在涉及到有关金钱的计算时比较有用两个高精度数比较 bccomp($a,$b,int)int bccomp ( string $left_operand , string $right_operand [, int $scale ] )$left...转载 2018-12-14 23:39:29 · 243 阅读 · 0 评论 -
PHP数学运算函数大汇总
一、常用函数说明:Abs: 取得绝对值。Acos: 取得反余弦值。Asin: 取得反正弦值。Atan: 取得反正切值。Atan2: 计算二数的反正切值。base_convert: 转换数字的进位方式。BinDec: 二进位转成十进位。Ceil: 计算大于指定数的最小整数。Cos: 余弦计算。DecBin: 十进位转二进位。DecHex: 十进位转十六进位...转载 2018-12-14 23:42:44 · 1097 阅读 · 0 评论 -
PHP获取本月起始和截止时间戳
本月起始和结束//获取本月开始的时间戳$beginThismonth=mktime(0,0,0,date('m'),1,date('Y'));//获取本月结束的时间戳$endThismonth=mktime(23,59,59,date('m'),date('t'),date('Y'));上月起始和结束,有两种写法:方法一:$m = date('Y-m-d', mktime...转载 2018-12-14 23:47:12 · 452 阅读 · 0 评论 -
PHP常用函数及方法 - 整理
获取图像信息 getimagesize()array getimagesize ( string $filename [, array &$imageinfo ] )#本地图片<?phplist($width, $height, $type, $attr) = getimagesize("runoob-logo.png");echo "宽度为:" . $w...原创 2018-12-16 18:49:22 · 210 阅读 · 0 评论