Re: Reverse of date("w")

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux