Re: Month loop
| From: | David Nicholson | Date: | Thu, 19 Jun 2003 20:03:12 +0000 |
| Subject: | Re: Month loop | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152228@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58,
lines prefixed by '>' were originally written by you.
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
for($i=1;$i<13;$i++){
echo date("F",mktime(0,0,0,$i,1,1));
}
For more info:
http://uk.php.net/manual/en/function.mktime.php
http://uk.php.net/date
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)