Re: convert numerical day of week

From: Date: Tue, 22 May 2007 16:53:30 +0000
Subject: Re: convert numerical day of week
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255332@lists.php.net to get a copy of this message
On 5/22/07, Bosky, Dave <Dave.Bosky@htcinc.net> 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( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ); $day = 1; echo $days[ $day - 1 ]; -- Greg Donald http://destiney.com/

« previous php.general (#255332) next »