摘要: 1.abs(): 求绝对值 $abs = abs(-4.2); //4.2 数字绝对值数字 2.ceil(): 进一法取整 echo ceil(9.999); // 10 浮点数进一取整 3.floor(): 舍去法取整 echo floor(9.999); // 9 浮点数直接舍去小数部分 4.f 阅读全文
posted @ 2019-08-15 17:12 php薛森森 阅读(1057) 评论(0) 推荐(0) 编辑
摘要: 控制器代码 阅读全文
posted @ 2019-07-23 20:17 php薛森森 阅读(487) 评论(0) 推荐(1) 编辑
摘要: function lst(){ //定义大小王 $arr=[501,502]; for ($i=100;$i<=400;$i+=100){ $arr=array_merge($arr,range($i+1,$i+13)); } $mon=[[],[],[],[]]; //54张牌发给4个人 每人13 阅读全文
posted @ 2019-07-09 19:53 php薛森森 阅读(480) 评论(0) 推荐(0) 编辑
摘要: <td><input type="checkbox" name="check" value="{$vo.id}">{$vo.id}</td><input type="button" class="del_all" value="批量刪除"> //批量刪除$(document).on("click", 阅读全文
posted @ 2019-07-09 19:52 php薛森森 阅读(577) 评论(0) 推荐(1) 编辑
摘要: //控制器function show(Request $request){ $page=$request->page?$request->page:1; $size=4; $pian=($page-1)*$size; $sql=DB::select("select * from scores "); $count=count($sql); $end=ceil... 阅读全文
posted @ 2019-07-09 19:51 php薛森森 阅读(131) 评论(0) 推荐(0) 编辑
摘要: <td><input type="checkbox" name="check" value="{$vo.id}">{$vo.id}</td> <input type="button" class="yes" value="全選"><input type="button" class="no" val 阅读全文
posted @ 2019-07-09 19:48 php薛森森 阅读(278) 评论(0) 推荐(0) 编辑
摘要: public function adds(request $request){ $dat = $request->all();//接收所有的 $file = $request->file("image");//接前台图片 $fil = $file->getClientOriginalName();/ 阅读全文
posted @ 2019-07-09 19:28 php薛森森 阅读(3692) 评论(0) 推荐(0) 编辑