for ($i=1; $i<=365; $i++) echo date( "Y-m-d", mktime( 0, 0, 0, 1, $i)). "\n";
The above snippet prints each day of current year on its own line. If you want one day per week, then you can change accordingly the values of for-loop variable, for example:
for ($i=4; $i<=365; $i+=7) [...]Or, for next year's calendar:
for ($i=1; $i<=365; $i++) echo date( "Y-m-d", mktime( 0, 0, 0, 1, $i, 1+date("Y"))). "\n";Don't forget to change 365 with 366 for a leap year. Visit The Light of the LAMP blog for more...
Διαβάστε όλο το άρθρο στο "The light of the LAMP" »
Μεταφράστε αυτό το άρθρο (Translate this article) »

