$d=date("D");
if ($d=="Wed") {
$dayofweek = date('D', strtotime('next saturday'));
$day = date('d', strtotime('next saturday'));
$month = date('m', strtotime('next saturday'));
$year = date('Y', strtotime('next saturday'));
echo $dayofweek . $day . $month . $year;
} if ($d="Sat") {
$day = date('D', strtotime('next wednesday'));
$dayofweek = date('d', strtotime('next wednesday'));
$month = date('m', strtotime('next wednesday'));
$year = date('Y', strtotime('next wednesday'));
}
?>