Re: [PHP] Re: convert numerical day of week

2007-05-23 Thread Stut
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 s

[PHP] Re: convert numerical day of week

2007-05-22 Thread itoctopus
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 -- itoctopus - http://www.ito