This blog post has been published on 2013-06-05 and may be out of date.
“Mittwoche” klingt irgendwie falsch … ;)
for ($i = 0; $i < = 4; $i++) {
if ($i == 0) {
$next_wednesday[$i] = date("Y-m-d", strtotime("next Wednesday"));
}
else {
$next_wednesday[$i] = date("Y-m-d", strtotime("next Wednesday", strtotime($next_wednesday[($i-1)])));
}
}
// DEBUG
print_r($next_wednesday);

