PHP generated the last 100 years drop-down list method, PHP generated 100 dropdown
This example describes how PHP has generated the drop-down list for the past 100 years. Share to everyone for your reference. Specific as follows:
Year selection is often used in projects, and this code automatically generates a drop-down list of the last 100 years starting this year
<?php $years = range (date ("Y"), date ("Y", Strtotime ("now-100 Years")); foreach ($years as $year) { echo ''. $year. '
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1035665.html www.bkjia.com true http://www.bkjia.com/PHPjc/1035665.html techarticle PHP generated a drop-down list of the past 100 years, PHP generation 100 drop-down This article describes how PHP generated the last 100-year drop-down list. Share to everyone for your reference. Specific as follows: ...