原创 分享一個PHP抽獎算法

設置中獎的列表 字段說明 id 獎品編號 prize 獎品名稱 v 中獎概率 $prize_arr = array( array('id' => 1, 'prize' => '筆記本電腦', 'v' => 1), array('id' =