PHP Tutorial. experience and skills. Advanced usage of for *** print necessary instructions * print (several days from Monday ?); Print (); for ($ currentDatedate (U); advanced usage of defining $ currentDate time grid
Advanced application of
/*
** Print necessary instructions
*/
Print ("
How many days are there from Monday?");
Print ("
");
For ($ currentDate = date ("U"); // defines the $ currentDate time format
Date ("l", $ currentDate )! = "Monday"; // determines whether the current system time is Monday.
$ CurrentDate + = (60*60*24) // add 1 day to the current time
{
/*
** Print the time name
*/
Print ("
- ". Date (" l ", $ currentDate )."");
}
Print ("
");
?>
Advanced usage of syntax for/*** print necessary instructions */print (several days from Monday? ); Print (); for ($ currentDate = date (U); // defines the $ currentDate time grid...