note 106469 deleted from function.strtotime by danbrown
| From: | danbrown@php.net | Date: | Tue, 15 Nov 2011 16:32:32 +0000 |
| Subject: | note 106469 deleted from function.strtotime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184484@lists.php.net to get a copy of this message | ||
Note Submitter: Maiko
----
El siguiente ejemplo es como Hacer un FOR entre un rango de fecha incrementando en un dia haciendo
uso del comando strtotime.
The following example is like a FOR between a date range increasing by day using strtotime command.
for($i=strtotime("2011-05-19");$i<=strtotime("2011-06-05");$i=strtotime("+1
day", $i)){
echo date("d/m/Y",$i) ."<br />";
//Para Imprimir en un formato de Fecha especifico y no en un simple numero entero
// To print format Date specific and not a simple integer
}