![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/02/2009, 11:59
|
![Avatar de david_M_G](http://static.forosdelweb.com/customavatars/avatar89474_1.gif) | | | Fecha de Ingreso: febrero-2005
Mensajes: 938
Antigüedad: 20 años Puntos: 20 | |
Respuesta: Como puedo saber el dia domingo en php Cita:
Iniciado por karliky jajaja
echo strtotime ("now"), "\n";
echo strtotime ("10 September 2000"), "\n";
echo strtotime ("+1 day"), "\n";
echo strtotime ("+1 week"), "\n";
echo strtotime ("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime ("next Thursday"), "\n";
echo strtotime ("last Monday"), "\n";
Si quieres el domingo:
echo strtotime ("sunday"), "\n"; Pero... Eso es para que aparezca en segundos (tiempo UNIX), por eso he puesto la cara. |