Zitat von AmicaNoctis
Beitrag anzeigen
Der 27. März hat 23 Stunden und der 30. Oktober hat 25 Stunden.
$datum_von = "2010-08-23";
$datum_bis = "2011-07-22";
echo $datum_stemp_von." - ".$datum_stemp_bis."<br>";
$tag= date('Y-m-d', strtotime("$datum_von".' next monday'));
echo $tag."<br>";
$date = new DateTime($tag);
$date->modify('+1 week');
echo $date->format('Y-m-d');
for($reihe=$datum_von;$reihe<=$datum_bis;$reihe++)
for($reihe=$datum_von;$reihe<=$datum_bis;$reihe->modify('+1 week');)
for($reihe=$datum_stemp_von;$reihe<=$datum_stemp_bis;$reihe+604800)
for ($i = 0; $i <= $i_max; $i++) {
/* ... */
}
$i = 0;
while ($i <= $i_max) {
/* ... */
$i++;
}
Kommentar