<p class="listintro"><span id="sp"></span>技巧|教程</p> <p style="width:340px;height:285px;float:left;"> for的高级运用<br><br> <br></p> <br><title>for的高级运用</title> <br> <br> <br> <br>/* <br>** 打印必要的说明文字 <br>*/ <br>print("<b>距离星期一还有几天?</b>\n"); <br>print("<ol>\n"); <br>for($currentDate = date("U"); //定义$currentDate时间格式 <br>date("l", $currentDate) != "Monday"; //判断是不是当前系统时间是Monday <br>$currentDate += (60 * 60 * 24))//当前时间加上1天 <br>{ <br>/* <br>** 打印时间名称 <br>*/ <br>print("<li>" . date("l", $currentDate) . "\n"); <br>} <br><br>print("</li> </ol>\n"); <br>?> <br> <br><br> <br><br> <center> </center> <p style="width:100%;text-align:center;margin:10px 0"> <br> <br> </p> <p style="width:100%;text-align:center;margin:10px 0"> </p> <p class="clear"></p>