1582 )||(($year == "1582 ") && ($month > 10)) ||(($year == "1582 ") && ($month=="10 ")&&($date >14))) { $jd = makeInt((1461 *($year +4800+ makeInt(($month-14 )/12 )))/4)+ makeInt((367 *($month- 2-12 *(makeInt(($month-14 )/12 ))))/12)- makeInt( (3 *(makeInt(($year +4900+ makeInt(($month-14 )/12 ))/100 ))) /4)+ $date- 32075 ; } else { $jd = 367 *$year- makeInt((7 *($year +5001+ makeInt(($month-9 )/7 )))/4)+ makeInt((275 *$month)/9)+ $date +1729777 ; } $wd = $jd%7; $l = $jd- 1948440+10632 ; $n=makeInt(($l-1 )/ 10631 ); $l=$l- 10631 *$n+354; $z=(makeInt(( 10985 - $l)/5316 ))*(makeInt((50 *$l)/ 17719))+ (makeInt($l/5670 ))*(makeInt((43 *$l)/ 15238 )); $l=$l-(makeInt((30 - $z)/15 ))*(makeInt(( 17719 *$z)/50))- (makeInt($z/16 ))*(makeInt(( 15238 *$z)/ 43))+29 ; $m=makeInt((24 *$l)/709); $d=$l-makeInt((709 *$m)/24); $y=30 *$n+ $z-30; $g = $m-1; $final = "$d $array_bulan[$g] $y H\r\n\t"; return $final; } //Memanggil fungsi $date = hijriyah(); $teks = "$date"; $hasil=""; $warna=0; $turn=0; while($warna<=strlen($teks)){ $warnahuruf = substr ($teks,$warna,1); $warna++; if($turn==0){ $turn=1; $hasil.= "".$warnahuruf.""; } else if($turn==1){ $turn=2; $hasil.= "".$warnahuruf.""; } else if($turn==2){ $turn=3; $hasil.= "".$warnahuruf.""; } else if($turn==3){$turn=4; $hasil.= "".$warnahuruf.""; } else if($turn==4){$turn=5; $hasil.= "".$warnahuruf.""; } else if($turn==5){$turn=6; $hasil.= "".$warnahuruf.""; } else if($turn==6){$turn=7; $hasil.= "".$warnahuruf.""; } else if($turn==7){$turn=8; $hasil.= "".$warnahuruf.""; } else if($turn==8){$turn=9; $hasil.= "".$warnahuruf.""; } else if($turn==9){$turn=10; $hasil.= "".$warnahuruf.""; } else if($turn==10){$turn=11; $hasil.= "".$warnahuruf.""; } else if($turn==11){$turn=12; $hasil.= "".$warnahuruf.""; } else if($turn==12){$turn=13; $hasil.= "".$warnahuruf.""; } else if($turn==13){$turn=14; $hasil .= "".$warnahuruf.""; } else if($turn==14){$turn=15; $hasil .= "".$warnahuruf.""; } else if($turn==15){$turn=16; $hasil .= "".$warnahuruf.""; } else if($turn==16){$turn=17; $hasil .= "".$warnahuruf.""; } else if($turn==17){$turn=18; $hasil .= "".$warnahuruf.""; } else if($turn==18){$turn=19; $hasil .= "".$warnahuruf.""; } else if($turn==19){$turn=20; $hasil .= "".$warnahuruf.""; } else if($turn==20){$turn=21; $hasil .= "".$warnahuruf.""; } else if($turn==21){$turn=22; $hasil .= "".$warnahuruf.""; } else if($turn==22){$turn=23; $hasil .= "".$warnahuruf.""; } else if($turn==23){$turn=24; $hasil .= "".$warnahuruf.""; } else if($turn==24){$turn=25; $hasil .= "".$warnahuruf.""; } else if($turn==25){$turn=26; $hasil .= "".$warnahuruf.""; } else if($turn==26){$turn=27; $hasil .= "".$warnahuruf.""; } else if($turn==27){$turn=28; $hasil .= "".$warnahuruf.""; } else if($turn==28){$turn=29; $hasil .= "".$warnahuruf.""; } else if($turn==29){$turn=0; $hasil .= "".$warnahuruf.""; } } echo "$hasil"; ?>

Polaroid