摘要: function redpacket($money_sum,$num_redpacket) { $max = ($money_sum / $num_redpacket) * 2; $packet = []; for (;$num_redpacket>0;$num_redpacket--) ... 阅读全文
posted @ 2019-03-28 16:13 你的男孩 阅读(633) 评论(0) 推荐(0) 编辑
摘要: dsn = 'mysql:host='.$dbHost.';dbname='.$dbName; $this->dbh = new PDO($this->dsn, $dbUser, $dbPasswd); $this->dbh->exec('SET character_set_connection='.$dbCharset.', character_... 阅读全文
posted @ 2019-03-28 16:08 你的男孩 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 参考网址:https://lnmp.org/install.html 下载并安装LNMP一键安装包:您可以选择使用下载版(推荐美国及海外VPS或空间较小用户使用)或者完整版(推荐国内VPS使用,国内用户可用在下载中找国内下载地址替换),两者没什么区别,只是完整版把一些需要的源码文件预先放到安装包里。 阅读全文
posted @ 2019-03-28 16:02 你的男孩 阅读(299) 评论(0) 推荐(0) 编辑
摘要: delete.php 阅读全文
posted @ 2019-03-28 16:01 你的男孩 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 这种情况下一般使用任何框架原本的输出方法可能都会出错,比如laravel框架中 echo $data[0]['qty'];会报stdClass Object这个问题,那么这个时候就$data[0]->qty就可以了。 阅读全文
posted @ 2019-03-28 15:57 你的男孩 阅读(1155) 评论(2) 推荐(0) 编辑
摘要: PHP代码 阅读全文
posted @ 2019-03-28 15:43 你的男孩 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-28 15:38 你的男孩 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 最新的git就装好了 阅读全文
posted @ 2019-03-28 15:26 你的男孩 阅读(5620) 评论(0) 推荐(0) 编辑