Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/10/2007, 15:03
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: como saber la cantidad de dias de un mes

Puedes hacer algo asi:
Código PHP:
$fecha "30-03-2003";
$timestamp strtotime$fecha );
$diasdelmes date"t"$timestamp );
echo 
sprintf"Para la fecha %s el mes tenia %d dias"$fecha$diasdelmes ); 
Saludos.