Selamat datang di Blog Arciko Cyber (Powered @ by.Poernama Sidik)

4. strtotime

Fungsi : Mengubah string tanggal/waktu (bahasa inggris) ke timestamp Unix.
Sintaks :
strtotime ( string $time [, int $now ] )
Contoh :
<?php
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
?>

Tidak ada komentar :

Posting Komentar

Silahkan masukan komentar anda...

Semoga Artikel Artikel Arciko Cyber menjadi bermanfaat buat anda dan jangan terlalu cepat, budayakanlah membaca....