Guest User

format tanggal indonesia

a guest
Jun 16th, 2014
427
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $array_hari = array(1=>'Senin','Selasa','Rabu','Kamis','Jumat','Sabtu','Minggu');
  3. $hari = $array_hari[date('N')];// untuk membuat hari
  4. $array_bulan = array(1=>'Januari','Februari','Maret','April','Mei','Juni','Juli','Agustus','September','Oktober','Novemer','Desember');$bulan = $array_bulan[date('n')];// untuk membuat bulan
  5. $tgl = date('j');
  6. $thn = date('Y');
  7. echo $hari.", ".$tgl." ".$bulan." ".$thn ;?>
RAW Paste Data