Re: Re: convert numerical day of week

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux