Login   Register  
PHP Classes
elePHPant
Icontem

File: use.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2012-10-30 00:12
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;

?>