Dear All, I think this is an easier solution: <?php // array containing all arabic months $ar_month = array('íäÇíÑ', 'ÝÈÑÇíÑ', 'ãÇÑÓ', 'ÃÈÑíá', 'ãÇíæ', 'íæäíæ', 'íæáíæ', 'ÃÛÓØÓ', 'ÓÈÊãÈÑ', 'ÃßÊæÈÑ', 'äæÝãÈÑ', 'ÏíÓãÈÑ'); // get current month and substract 1 to match array position $arabic_month = $ar_month[date('m')-1]; // will display current arabic month echo $arabic_month; ?> Regards, Joseph Griffin http://www.aspiredmind.com/ ________________________________ From: SaEeDoS <saeedos@xxxxxxxxx> To: php-objects@xxxxxxxxxxxxxxx Sent: Tuesday, February 17, 2009 6:47:32 PM Subject: Re: Date in arabic i'm using this function : <?php $todayMonth= date("M", time()); $monthNames= monthName( $todayMonth) ; function arabicMonthNames( $date) { switch ($date) { case 01: return $monthNames= "ي& #1606;ا ي&# 1585;"; break; case 02: return $monthNames= "ف& #1576;ر ا&# 1610;ر "; break; case 03: return $monthNames= "م& #1575;ر س"; break; case 04: return $monthNames= "إ& #1576;ر ي&# 1604;"; break; case 05: return $monthNames= "م& #1575;ي و"; break; case 06: return $monthNames= "ي& #1608;ن ي&# 1608;"; break; case 07: return $monthNames= "ي& #1608;ل ي&# 1608;"; break; case 08: return $monthNames= "أ& #1594;س ط&# 1587;"; break; case 09: return $monthNames= "س& #1576;ت م&# 1576;ر "; break; case 10: return $monthNames= "أ& #1603;ت و&# 1576;ر "; break; case 11: return $monthNames= "ن& #1608;ف م&# 1576;ر "; break; case 12: return $monthNames= "د& #1610;س م&# 1576;ر "; break; } } ?> i hope it can be useful --- In php-objects@ yahoogroups. com, Mohammad Al-Naji <mnaji.qx@.. .> wrote: > > do you have any idea how to write the date in arabic char like [كا ن&# 1608;ن ثا ن&# 1610;]? > > -- > Kind Regards, > Mohammad Al-Naji > > > [Non-text portions of this message have been removed] > [Non-text portions of this message have been removed] ------------------------------------ Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/jobs/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-objects/join (Yahoo! ID required) <*> To change settings via email: mailto:php-objects-digest@xxxxxxxxxxxxxxx mailto:php-objects-fullfeatured@xxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/