Re: convert numerical day of week

From: Date: Thu, 24 May 2007 23:25:53 +0000
Subject: Re: convert numerical day of week
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255602@lists.php.net to get a copy of this message
On Tue, May 22, 2007 11:46 am, Bosky, Dave wrote: > How can I convert the numerical day of week to the string version? > > Example, if the day of the week is 1 I would like to print out > 'Sunday'. $days = array(1=>'Sunday', 'Mondy', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); echo $days[$dow]; You could also probably play games with date() function and mktime... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#255602) next »