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','Sunday');
$day_of_week = $days[1]; // <-- Monday
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php