Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* A user-friendly class for handling dates.
*
* Extends the DateTime class in >= PHP 5.2 to build and format dates without the
* need to memorize PHP date format specifiers. Eliminates inaccurate results when
* modifying dates to add or subtract days, weeks, months, or years.
* Static dateDiff() method calculates number of days between two dates.
*
* @package Pos
<?php
/**
* A class for validating and filtering user input
*
* This class acts as a wrapper for the filter functions in >= PHP 5.2 or PECL.
* If an optional array of required items is passed to the class constructor,
* the Pos_Validator object generates an array of missing items.
*
* The first argument for each validation method is the name of the input
* field or URL variable, which is always required. Many methods accept
<!doctype html>
<html>
<head>
<meta charset ="utf-8">
<title>Date Calculator</title>
</head>
<body>
<?php
require_once '/Date.php'; //Include date.php once
<!doctype html>
<html>
<head>
<meta charset ="utf-8">
<title>Date Calculator</title>
</head>
<body>
<?php
require_once '/Date.php'; //Include date.php once
<?php
/**
* A class for validating and filtering user input
*
* This class acts as a wrapper for the filter functions in >= PHP 5.2 or PECL.
* If an optional array of required items is passed to the class constructor,
* the Pos_Validator object generates an array of missing items.
*
* The first argument for each validation method is the name of the input
* field or URL variable, which is always required. Many methods accept
<!doctype html>
<html>
<head>
<meta charset ="utf-8">
<title>Date Calculator</title>
</head>
<body>
<?php
require_once '/Date.php'; //Include date.php once
<!doctype html>
<html>
<head>
<meta charset ="utf-8">
<title>Date Calculator</title>
</head>
<body>
<?php
/**
* A user-friendly class for handling dates.
*
* Extends the DateTime class in >= PHP 5.2 to build and format dates without the
* need to memorize PHP date format specifiers. Eliminates inaccurate results when
* modifying dates to add or subtract days, weeks, months, or years.
* Static dateDiff() method calculates number of days between two dates.
*
* @package Pos