RE: [PHP] Month loop

From: Date: Thu, 19 Jun 2003 20:03:28 +0000
Subject: RE: [PHP] Month loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152229@lists.php.net to get a copy of this message
Hi, > Is there any way I could loop thru and print all the month names (i.e. > January, February)? I suppose you could do something like: for ($i = 1; $1 >= 12; $i++) { echo date("F", mktime(0, 0, 0, $i, 1, 2003)) . "<br>"; } Unless you just want to manually create an array with the month's names in it. -Dan Joseph

« previous php.general (#152229) next »