PHP Classes

File: use.php

Recommend this page to a friend!
  Classes of Yevgeniy Karpukhin   Date Manipulation   use.php   Download  
File: use.php
Role: Example script
Content type: text/plain
Description: Sample of use
Class: Date Manipulation
Get the date of days of the week
Author: By
Last change: Small error
Date: 12 years ago
Size: 307 bytes
 

Contents

Class file image Download
<?
include_once 'date.class.php';

// If array provided
$date = new DateManipulation();
$dates = $date->getDate(array(2,5,7)); // --- 2,5,7 days of the week


var_dump($dates);

// If string
$date = new DateManipulation();
$dates = $date->getDate(4); // 4 - day of the week

echo $dates;

?>