- date: documentation ( source)
- range: documentation ( source)
<?php
$current_year = date("Y");
$years = range(intval($current_year), 2016);
echo "<ul>";
foreach ($years as $value) {
echo "<li><a href='blog_posts.php?month=01&yr=$value;'>$value</a></li>";
}
echo "</ul>";