HTML/TEXT ONLINE EDITOR FARSI/LATIN

نگارش فارسى و لاتين
1 && (($gy%4==0 && $gy%100!=0) || ($gy%400==0))) ++$g_day_no; $g_day_no += $gd; $j_day_no = $g_day_no-79; $j_np = div($j_day_no, 12053); $j_day_no %= 12053; $jy = 979+33*$j_np+4*div($j_day_no,1461); $j_day_no %= 1461; if ($j_day_no >= 366) { $jy += div($j_day_no-1, 365); $j_day_no = ($j_day_no-1)%365; } for ($i = 0; $j_day_no >= $j_days_in_month[$i]; ++$i) { $j_day_no -= $j_days_in_month[$i]; } $jm = $i+1; $jd = $j_day_no+1; farsinum($jm); echo weekday_name($wday).",".farsinum($jd).month_name($jm-1)."ماه"." ".farsinum($jy); } function farsinum($str){ if (strlen($str) == 1) $str = "0".$str; $out = ""; for ($i = 0; $i < strlen($str); ++$i) { $c = substr($str, $i, 1); $s = $c + 1632; $out .= "&#$s;"; } return $out; } function weekday_name($w) { switch ( $w ) { case 0: return ("يك شنبه"); case 1: return ("دو شنبه"); case 2: return ("سه شنبه"); case 3: return ("چهار شنبه"); case 4: return ("پنج شنبه"); case 5: return ("جمعه"); case 6: return ("شنبه"); } return "unknown-weekday($w)"; } function month_name ( $m ) { switch ( $m ) { case 0: return (" فروردين "); case 1: return (" ارديبهشت "); case 2: return (" خرداد "); case 3: return (" تير "); case 4: return (" مرداد "); case 5: return (" شهريور "); case 6: return (" مهر "); case 7: return (" آبان "); case 8: return (" آذر "); case 9: return (" دي "); case 10: return (" بهمن "); case 11: return (" اسفند "); } return "unknown-month($m)"; } gregorian_to_jalali(); ?>  مطابق با ۱۴ ربيع الثاني ۱۴۴۱ هجرى قمرى
Writing Persian (Farsi) with the Latin alphabet
Online persian keyboard (Farsi) to type a text with the Farsi characters.