How does php generate the download list of the year, month and day
This article mainly shows you "how to generate php download list", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "php how to generate the download list of the year, month and day" this article.
The specific implementation methods are 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 = > "April", 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