Re: days of week

From: Date: Thu, 18 Mar 2004 12:00:55 +0000
Subject: Re: days of week
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-180806@lists.php.net to get a copy of this message
yes but I want it in various languages. "Richard Davey" <rich@launchcode.co.uk> wrote in message news:1514256129.20040318114817@launchcode.co.uk... > Hello Diana, > > Thursday, March 18, 2004, 11:38:55 AM, you wrote: > > DC> does anyone know of any built in php functions that can convert a day of > DC> week that is in numeric format , e.g. 1 into a Monday (without knowing which > DC> exact date we are talking about) > > I can't think of a built-in function that will do this (that doesn't > rely on a date), but it's still quite easy to do: > > $days = > array('','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sund ay'); > > $day_of_week = $days[1]; // <-- Monday > > -- > Best regards, > Richard Davey > http://www.phpcommunity.org/wiki/296.html

« previous php.general (#180806) next »