大家看看这个类里的方法函数是什么意思啊
mhzzz 2004-10-11 01:28:19 <?
class Basket
{
.............................
.............................
function Enum_Items($start=false)
{
static $current;
if ($current>=$this->basket_count)
return -1;
if (!$start)
{
$current++;
}
else
{
$current=0;
}
while (($this->basket_item_id[$current]=='') && ($current<$this->basket_count))
{
$current++;
}
return ($current<$this->basket_count) ? $current : -1;
}
}
?>