Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style type="text/css">
- .day {
- float: left;
- width: 2.1em;
- height: 2.1em;
- display: inline-block;
- border: 1px black solid;
- padding: 2px;
- font-family: verdana;
- font-size: 1em;
- }
- </style>
- </head>
- <body>
- <?php
- $timestamp = mktime(0, 0, 0, 1, 1, date('o'));
- for ($i = 0; $i < 365; $i++) : ?>
- <div class="day">
- <?php echo date('M', $timestamp + ($i * 60 * 60 * 24)) . '<br />'; ?>
- <?php echo date('d', $timestamp + ($i * 60 * 60 * 24)); ?>
- </div>
- <?php endfor; ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement