Re: Reverse of date("w")

From: Date: Mon, 18 Sep 2006 23:33:49 +0000
Subject: Re: Reverse of date("w")
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241912@lists.php.net to get a copy of this message
Not really. If it were always "today" that would work, but in this case, I was thinking of storing a day of the week in a database ("3"), and then display the info based on that digit. So assuming that the number was in fact 3, then: echo date("D","3"); Would return "Wed". Is there any function like that? Oh, and it has to run on PHP 4. -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 On Sep 18, 2006, at 3:18 PM, Jay Blanchard wrote: > [snip] > 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? > [/snip] > > Perhaps http://www.php.net/idate > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#241912) next »