date in an other language????

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
yK
New php-forum User
New php-forum User
Posts: 28
Joined: Tue Aug 19, 2003 1:27 pm

Tue Nov 25, 2003 5:17 pm

this should work :

Code: Select all

<?

$month = Date(F);

function gofrench($month){

$frenchmonth = array(
   January => "Janvier",
   February => "Février",
   March => "Mars",
   April => "Avril",
   May => "Mai",
   June => "Juin",
   July => "Juillet",
   August => "Août",
   September => "Septembre",
   October => "Octobre",
   November => "Novembre",
   December => "Décembre"
);

$i = Date("j, Y");

$x = $frenchmonth[$month];

$f = $x." ".$i;

return $f;

}

print(gofrench($month));

?>


i havent tested it though

Post Reply
  • Information
  • Who is online

    Users browsing this forum: chorn and 6 guests