numeric to day name in various languaes
| From: | Diana Castillo | Date: | Thu, 18 Mar 2004 11:53:10 +0000 |
| Subject: | numeric to day name in various languaes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180805@lists.php.net to get a copy of this message | ||
Is there anything built into php that would do something like this , but in
all of the possible languages?
switch ($restriction_week_days) {
case "1":
$restriction_day = "Monday,Lunes,Lundi";
break;
case "2":
$restriction_day = "Tuesday,Martes,Mardi";
break;
case "3":
$restriction_day = "Wednesday,Miercoles, Mercredi";
break;
case "4":
$restriction_day = "Thursday , Jueves, Jeudi";
break;
case "5":
$restriction_day = "Friday, Viernes,Vendredi";
break;
case "6":
$restriction_day = "Saturday, Sabado, Samedi";
break;
case "7":
$restriction_day = "Sunday, Domingo, Dimanche";
break;
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039 ext 214
Fax : 00-34-915228673
email: diana@hotelkey.com
Web : http://www.hotelkey.com
http://www.destinia.com