You are here: Month number increases but month name does not « PHP Programming Language « IT news, forums, messages
Month number increases but month name does not

Posted by comp.lang.php on 09/01/06 20:16

C ould someone please explain this one? This one got me:

PHP Code:
for ($thisMonth = (int)$minMonth; $thisMonth <= 12; $thisMonth++) {
$monthName = date('M', strtotime($thisMonth));
print_r("thisMonth = $thisMonth and monthName = $monthName<P>");
}


Quote:
thisMonth = 7 and monthName = Sep

thisMonth = 8 and monthName = Sep

thisMonth = 9 and monthName = Sep

thisMonth = 10 and monthName = Sep

thisMonth = 11 and monthName = Sep

thisMonth = 12 and monthName = Sep


I am at a loss, please help, time sensitive I'm afraid, must be done in
an hour (it's 4pm EST now)

Thanx
Phil

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация