Steve Edberg wrote:
At 9:51 AM +0100 3/11/07, Otto Wyss wrote:
function convert_from_weekday ($weekday) {
return $wdays[$weekday];
}
If the above is your exact code, then the problem is one of scope;
move the $wdays declaration inside your convert_from_weekday()
function.
I'm more used to C++ than PHP, with "global $wdays;" it works.
However, you may want to investigate the formatting functions of date():
http://php.he.net/manual/en/function.date.php
Date should return names using the native locale; if you want to
return date strings for other locales/languages, use setlocale() -
http://php.he.net/manual/en/function.setlocale.php
Thanks, I'll keep this in mind.
O. Wyss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php