<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>無標題文檔</title> </head> <body> <?php $a[0]['tag']='而沃爾核大風發順豐'; $a[1]['tag']='年法國女人一樣try'; $a[2]['tag']='日特全權委託呵呵'; $a[3]['tag']='烤羊腿發順豐維特問題'; $a[4]['tag']='哪一個服廣告讓人'; $a[5]['tag']='退熱騰騰月一樣看一看'; $a[6]['tag']='好好聽忐忑忐忑'; $a[7]['tag']='男男女女奶奶扶'; $a[8]['tag']='諤諤兒童'; $a[9]['tag']='熱天熱天'; $a[10]['tag']='而已而已'; $a[11]['tag']='熱熱熱熱熱發順豐熱熱'; $a[12]['tag']='不變的分別'; $a[13]['tag']='古典風格'; $a[14]['tag']='未全額發順豐涌'; $a[15]['tag']='那份關懷'; $a[16]['tag']='電發順豐吞吐吐'; /*$a[17]['tag']='熱騰騰忐忑忐忑忐忑'; $a[18]['tag']='二位投入密碼';*/ ?> <?php //print_r('rrrrrrrrrrrrrrr'); ?> <ul class="playList" > <li> <?php foreach($a as $key=>$item){?> <label for="list-0"><input type="checkbox" value="32221" ><?php echo $item['tag'];?></label> <?php if (($key+1)%4==0 && $key<count($a)-1){ ?> </li><li> <?php }elseif(($key+1)%4!=0 && $key==count($a)-1){?> </li> <?php }?> <?php }?> </ul> </body> </html>