PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Didats Triadi   JarakTanggal   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: JarakTanggal
Calculate the number of days between two dates
Author: By
Last change:
Date: 19 years ago
Size: 164 bytes
 

Contents

Class file image Download
<?php
include "jaraktanggal.class.php";
$a = new JarakTanggal;
$b = $a->HitungJarakTanggal(date("d/m/Y"),"26/04/2005");
echo
$b." days to April, 26th 2005";
?>