Advanced use of for
Advanced use of for / *
** Print necessary captions
*/
print("
How many days until Monday?
");
print("
");
for($currentDate = date("U"); //Define the $currentDate time format
date("l", $currentDate) != "Monday"; //Judge whether it is the current system The time is Monday
$currentDate += (60 * 60 * 24))//Current time plus 1 day
{
/*
** Print time name
*/
print("- " . date("l", $currentDate) . "
");
}
print("
");
?>
http://www.bkjia.com/PHPjc/532320.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532320.htmlTechArticleAdvanced use of for Advanced use of for /* ** Print necessary explanatory text*/ print( from Monday How many days are left? ); print( ); for($currentDate = date(U); //Define $currentDate time format...