<?php
$this_thr_str = strtotime('this Thursday');
if($this_thr_str <= strtotime("now")){
echo 'This thurs<br>';
$thrs = date('mdy',$this_thr_str);
}else{
echo 'Last Thurs<br>';
$thrs = strtotime('last Tuesday');
}
$link = 'http://marc.ucla.edu/mpeg/Hammer'.$thrs.'.mp3';
echo $link;
//
//echo date('mdy',$tuestr);
- Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- Last Thurs<br>http://marc.ucla.edu/mpeg/Hammer1499119200.mp3
- Output for 7.3.32 - 7.3.33, 8.0.13
- Last Thurs<br>http://marc.ucla.edu/mpeg/Hammer1499126400.mp3
preferences:
173.42 ms | 401 KiB | 200 Q