Membuat fungsi waktu dengan “getdate”

Februari 20, 2008 at 6:09 am Tinggalkan komentar

//membuat fungsi waktu

<?php
// Membuat Waktu
echo”Sekarang Jam :”,date(‘h : i : s A’);
echo”
“;
// Mmembuat Fungsi Getdate
$jam=getdate();
echo”Selamat “;
if($jam[hours]<=9)
echo”Pagi”;
else
if($jam[hours]<=14)
echo”Siang”;
else
if($jam[hours]<=19)
echo”Sore”;
else
echo”Malam”;
//Tulisan yang akan tampil
echo”
semuanya”;

?>

Entry filed under: Sekolah. Tags: .

Mikrotik Step by Step Membuat fungsi tanggal dengan php

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Tutorial


Ikuti

Get every new post delivered to your Inbox.