Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/09/2005, 08:40
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Si no es ridiculo (jaja) podrias usar esto:

Código PHP:
<?php
   
function ultimoDiaMes($mes,$año)
   {
      for (
$dia=28;$dia<=31;$dia++)
         if(
checkdate($mes,$dia,$año)) $fecha="$año/$mes/$dia";
      return 
$fecha;
   }
   echo 
ultimoDiaMes(2,2005);
   echo 
ultimoDiaMes(2,2008);
?>