摘要: $str=''; $pattern="//i"; preg_match_all($pattern,$str,$match); echo ''; print_r($match); 阅读全文
posted @ 2015-07-13 15:34 壁虎漫步. 阅读(1584) 评论(0) 推荐(0) 编辑
摘要: _table=""; // 获取日期信息年和月(默认为当前的年和当前月) $this->_year = isset($_GET["y"]) ? $_GET["y"] : date("Y"); $this->_month = isset($_GET["m"])... 阅读全文
posted @ 2015-07-13 15:33 壁虎漫步. 阅读(278) 评论(0) 推荐(0) 编辑
摘要: /* * array unique_rand( int $min, int $max, int $num ) * 生成一定数量的不重复随机数 * $min 和 $max: 指定随机数的范围 * $num: 指定生成数量 * 说明: 生成随机数时用了 mt_... 阅读全文
posted @ 2015-07-13 15:32 壁虎漫步. 阅读(506) 评论(0) 推荐(0) 编辑
摘要: header("Content-Type: text/html;charset=utf-8");//输出不乱码,你懂的 $total=10;//红包总额 $num=8;// 分成8个红包,支持8人随机领取 $min=0.01;//每个人最少能收到0.01元 for ($i=1;$i'; ... 阅读全文
posted @ 2015-07-13 15:31 壁虎漫步. 阅读(414) 评论(1) 推荐(0) 编辑