<body>
selamat belajar php. <BR />
<?
Printf ("tgl.sekarang : %s ",Date("d F Y));
?>
</body>
</html>
atau bisa dibawah ini :
<?php
$hari = array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu");
$bulan = array("","Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember");
echo $hari[date("w")].", ".date("j")." ".$bulan[date("n")]." ".date("Y");
?>
* selamat mencoba
No comments:
Post a Comment