BugInTheSYS

Untitled

May 5th, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?php
  2.     $hoy = getdate();
  3.     $mes = $hoy["mon"];
  4.     $dia = $hoy["mday"];
  5.    
  6.     echo "Hoy estamos al ".$dia." de ".$mes."<br>";
  7.      
  8.     if( $mes == "1" ) {
  9.     if( $dia == "1" ) {
  10.         echo "Día de Año Nuevo";
  11.     }
  12.     if( $dia == "6" ) {
  13.         echo "Los Reyes Magos";
  14.     }
  15.     }
  16.     if( $mes == "5" ) {
  17.     if( $dia == "6" ) {
  18.         echo "Día de la madre";
  19.     }
  20.     }
  21.      
  22.     ?>
Advertisement
Add Comment
Please, Sign In to add comment