日期:2014-05-17 浏览次数:20566 次
session_start(); $ar = array(1,2,3,4,5,6,7,8,9); if(! isset($_SESSION['offs'])) $_SESSION['offs'] = 0; echo $ar[$_SESSION['offs']]; $_SESSION['offs'] = ($_SESSION['offs'] + 1) % count($ar);