Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/10/2011, 08:07
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Modificar script para generar lunes apartir de hoy?

Mejor usa strtotime():
Código PHP:
Ver original
  1. <?php
  2. $nextMonday = strtotime("next Monday");
  3. $i = 0;
  4. do {
  5.     echo date("d-m-Y", $nextMonday) . "<br />\n";
  6.     $nextMonday = $nextMonday + (60*60*24*7);
  7.     $i++;
  8. } while($i < 53);