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 | 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 |
| | kuranng tepat |
| | hasilnya benar.. metodenya kurang tepat |
| | klo mau di buat input gmna mas ? |
| | pake <input type=date> aj gan ?? |
| | harusnya : echo "Tanggal setelah menambahkan 1 hari: ".date('Y-m-d', $besok); | | |
|
Tidak ada komentar:
Posting Komentar