<?php
function d($d)
{
switch(date('l'))
{
case "Monday":
$d="lunes";
return $d;
break;
case "Tuesday":
$d="martes";
return $d;
break;
case "Wednesday":
$d="miercoles";
return $d;
break;
case "Thursday":
$d="jueves";
return $d;
break;
case "Friday":
$d="viernes";
return $d;
break;
case "Saturday":
$d="sabado";
return $d;
break;
case "Sunday":
$d="domingo";
return $d;
break;
}
}
$d=date('l');
$fun1=d($d);
function m($m)
{
switch(date('F'))
{
case "January":
$m="enero";
return $m;
break;
case "Febrary":
$m="febrero";
return $m;
break;
case "March":
$m="marzo";
return $m;
break;
case "April":
$m="abril";
return $m;
break;
case "May":
$m="mayo";
return $m;
break;
case "June":
$m="junio";
return $m;
break;
case "July":
$m="julio";
return $m;
break;
case "August":
$m="agosto";
return $m;
break;
case "September":
$m="septiembre";
return $m;
break;
case "October":
$m="octubre";
return $m;
break;
case "November":
$m="noviembre";
return $m;
break;
case "December":
$m="diciembre";
return $m;
break;
}
}
$m=date('F');
$fun2=m($m);
echo " hoy
es ".$fun1." , ".date('j')." de ".$fun2." del
".date('Y');
?>
0 comentarios:
Publicar un comentario