Re: Re: convert numerical day of week
| From: | Stut | Date: | Wed, 23 May 2007 08:46:04 +0000 |
| Subject: | Re: Re: convert numerical day of week | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255370@lists.php.net to get a copy of this message | ||
itoctopus wrote:
I think what you need is simply something like this:
function get_day($int_day){
$arr_day_of_week = array('1'=>'Sunday', '2'=>'Monday', '3'=>'Tuesday', '4'=>'Wednesday', '5'=>'Thurdsay', '6'=>'Friday', '7'=>'Saturday');
}
echo(get_day(1)); //will print Sunday
Hmm, not so much. Methinks your function should return something to get the desired effect.
-Stut