Re: Date in arabic

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

 



i'm using this function :
<?php
$todayMonth=date("M",time());
$monthNames=monthName($todayMonth);

function arabicMonthNames($date)
{
	switch ($date)
	{
		case 01:
			return $monthNames="íäÇíÑ";
		break;
		case 02:
			return $monthNames="ÝÈÑÇíÑ";		
		break;
		case 03:
			return $monthNames="ãÇÑÓ";		
		break;
		case 04:
			return $monthNames="ÅÈÑíá";		
		break;
		case 05:
			return $monthNames="ãÇíæ";		
		break;
		case 06:
			return $monthNames="íæäíæ";		
		break;
		case 07:
			return $monthNames="íæáíæ";		
		break;
		case 08:
			return $monthNames="ÃÛÓØÓ";		
		break;
		case 09:
			return $monthNames="ÓÈÊãÈÑ";		
		break;
		case 10:
			return $monthNames="ÃßÊæÈÑ";		
		break;
		case 11:
			return $monthNames="äæÝãÈÑ";		
		break;
		case 12:
			return $monthNames="ÏíÓãÈÑ";		
		break;				
	}
}
?>

i hope it can be useful

--- In php-objects@xxxxxxxxxxxxxxx, Mohammad Al-Naji <mnaji.qx@...> 
wrote:
>
> do you have any idea how to write the date in arabic char like 
[ßÇäæä ËÇäí]?
> 
> -- 
> Kind Regards,
> Mohammad Al-Naji
> 
> 
> [Non-text portions of this message have been removed]
>




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux