Php generates a download list by year, month, and day. Php method of generating download list by year, month, and day php method of generating download list by year, month, and day this article describes how php generates download list by year, month, and day. Share it with you for your reference. How to generate a download list by year, month, and day in php
How to generate a download list by year, month, and day in php
This example describes how php generates a download list by year, month, and day. Share it with you for your reference. The specific implementation method is as follows:
The code is as follows:
Function mdy ($ mid = "month", $ did = "day", $ yid = "year", $ mval, $ dval, $ yval)
{
If (empty ($ mval) $ mval = date ("m ");
If (empty ($ dval) $ dval = date ("d ");
If (empty ($ yval) $ yval = date ("Y ");
$ Months = array (1 => "January", 2 => "February", 3 => "March", 4 => "marshl", 5 => "May ", 6 => "June", 7 => "July", 8 => "August", 9 => "September", 10 => "October ", 11 => "November", 12 => "December ");
$ Out =""; Foreach ($ months as $ val => $ text) if ($ val = $ mval) $ out. ="$ Text"; Else $ out. ="$ Text"; $ Out. ="";
$ Out. =""; For ($ I = 1; $ I <= 31; $ I ++) if ($ I = $ dval) $ out. ="$ I"; Else $ out. ="$ I"; $ Out. ="";
$ Out. =""; For ($ I = date (" Y "); $ I <= date (" Y ") + 2; $ I ++) if ($ I = $ yval) $ out. ="$ I"; Else $ out. ="$ I"; $ Out. ="";
Return $ out;
}
I hope this article will help you design javascript programs.
Using php to generate a download list by year, month, and day this article describes how php generates a download list by year, month, and day. Share it with you for your reference. Details...