Minggu, 18 Agustus 2013

PHP Indonesia - Facebook: bang, script di bawah ni btul ga ma out putnya yng...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
LSAT prep from HLS-educated instructors

LSATMax includes video lessons, unlimited personal attention & support, and over 6,000 real questions from previous LSAT's. Enroll for just $299.
From our sponsors
bang, script di bawah ni btul ga ma out putnya yng...
Aug 19th 2013, 02:52, by Ac Stro

Ac Stro 2:52am Aug 19
bang, script di bawah ni btul ga ma out putnya yng ada di bawah ?

<?php
$tanggal = date("Y-m-d"); // tanggal hari ini
echo "Hari ini: ".$tanggal;

//Tambah 1 hari tanggal hari ini
$besok = strtotime(date("Y-m-d", strtotime($tanggal)) . " +1 day");
echo "Tanggal setelah menambahkan 1 hari: ".date('Y-m-d', $tanggal);
?>

Output dari kode program php tersebut akan seperti ini:

Hari ini: 2012-09-17
Tanggal setelah menambahkan 1 hari: 2012-09-18

Gunawan Mujur Wibisono 2:57am Aug 19
kuranng tepat

Gunawan Mujur Wibisono 2:58am Aug 19
hasilnya benar.. metodenya kurang tepat

Ac Stro 3:03am Aug 19
klo mau di buat input gmna mas ?

Adhie Purwa Sasmita 3:12am Aug 19
pake <input type=date> aj gan ??

Panji Eko Yuniarso 3:31am Aug 19
harusnya : echo "Tanggal setelah menambahkan 1 hari: ".date('Y-m-d', $besok);

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar