Re: Month loop
| From: | Tyler Lane | Date: | Thu, 19 Jun 2003 20:19:42 +0000 |
| Subject: | Re: Month loop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152236@lists.php.net to get a copy of this message | ||
<?php
$months = array("", "January", "February", "March",
"April", "May",
"June", "July", "August", "September", "October",
"November",
"December");
foreach( range( 1, 12 ) as $month )
{
print $months[ $month ];
}
?>
On Thu, 2003-06-19 at 12:57, drparker wrote:
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
--
Tyler Lane <tlane@lyrical.net>
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc