Membuat Fungsi Bulan Indonesia

Share On :
<?php
function bulan()
{
$bulan=date("m");
Switch ($bulan){
case 1 : $bulan="Januari";
Break;
case 2 : $bulan="Februari";
Break;
case 3 : $bulan="Maret";
Break;
case 4 : $bulan="April";
Break;
case 5 : $bulan="Mei";
Break;
case 6 : $bulan="Juni";
Break;
case 7 : $bulan="Juli";
Break;
case 8 : $bulan="Agustus";
Break;
case 9 : $bulan="September";
Break;
case 10 : $bulan="Oktober";
Break;
case 11 : $bulan="November";
Break;
case 12 : $bulan="Desember";
Break;
}
return $bulan;
}

 

Untuk menjalankan fungsi bulan gunakan

<?php echo bulan();?>


0 komentar:

Post a Comment

  • Mahasiswa STMIK Duta Bangsa
  • description
  • description
  • description
  • description
  • description
  • description
  • description

Free Hosting

Free Hosting

My Blog List

A
B
C
     
D
E
F
DuGMp3    
G
H
I
Goo Otomotif HouseofScript  
J
K
L
Java Hotline    
M
N
O

My Games Collection

MeLangKah LeBih MaJu

   
P
Q
R
Pamella Decoration    
S
T
U
Studied WaLL    
V
W
X
     
Y
Z
0-9
     









Join....!


Free Domain

Free Domain

SiNyO. Powered by Blogger.