- time: documentation ( source)
- date: documentation ( source)
<?php
$start = time();
$end = $start - 60 * 60 * 24 * 7;
for($checkdate=$start;$checkdate>=$end; $checkdate -=(60 * 60 * 24))
{
//echo date('N', $checkdate);
if ( date('N', $checkdate) == "5" )
{
$link = date('m-d-y', $date); // 05-24-13
}
}
echo $link;