PHP Classes

File: sample.php

Recommend this page to a friend!
  Classes of Reza Salehi  >  Future Date  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: the sample code
Class: Future Date
Calculates future dates given a time offset
Author: By
Last change:
Date: 10 years ago
Size: 584 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<title>Future time sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

$f=new futureDate();
//findDate($deltaDD=0, $deltaMM=0, $deltaYYYY=0)
$fDate=$f->findDate(0, 1, 0);
// This program will return an array which contains the date of tomorrow.
print("Tomorrows date is :".$fDate["year"]."-".$fDate["month"]."-".$fDate["day"]);