<?php
// initial value
$week = 50;
$year = 2001;
$store = array();
do
{
$week++;
$result = "$week/$year";
array_push($store,$result);
if($week == 53){
$week = 0;
$year++;//increment year by 1
}
continue;
}
// End of Loop
while ($result !== "2/2002");
?>
print_r($store);
结果要回报将是使用do..while,继续?
array("51/2001", "52/2001", "01/2002", "02/2002");
什么是我的问题,通过同时使用do..while,是否继续?
那是不对的 – kn3l 2011-05-10 15:41:13