Re: Reverse of date("w")
| From: | Richard Lynch | Date: | Sat, 23 Sep 2006 00:39:34 +0000 |
| Subject: | Re: Reverse of date("w") | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242123@lists.php.net to get a copy of this message | ||
On Mon, September 18, 2006 5:09 pm, Kevin Murphy wrote:
> I'm looking for something that will convert a the opposite of the date
> ("w") function. In other words, if I have the number "3", I would
> like it to return "Wednesday". Is there such a beast out there
> besides writing a switch or array or something?
I always just put:
$daynames = array_flip(array('Sunday', 'Monday', 'Tuesday',
'Wednesday', 'Thursday', 'Friday', 'Saturday'));
in my globals include file or whatever and use that...
[shrug]
--
Like Music?
http://l-i-e.com/artists.htm