- time: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$startingDate = strtotime('2013-01-01');
$start = time();
$end = $startingDate;
for($checkdate=$start;$checkdate>=$end; $checkdate -=(60 * 60 * 24))
{
if ( date('N', $checkdate) == "5" )
{
echo '<a href="https://www.extranet.frostyacres.com/portal_resources/1/Market Report '.date('m-d-y', $checkdate).'.pdf">Market Reports</a>';
}
}