PHP Classes

File: testDayofWeekFinder.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   PHP Day of the Week Name Finder   testDayofWeekFinder.php   Download  
File: testDayofWeekFinder.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP Day of the Week Name Finder
Get the name of day of the week in many languages
Author: By
Last change: add dutch example and hebrew...
Date: 6 years ago
Size: 2,424 bytes
 

Contents

Class file image Download
<?php
require_once('./DayofWeekFinder.class.php');
$date=date('l Y-m-d-h-i-s',2147483647);
    echo
'<br>'. $date;
   
$date=date('Y-m-d',2147483647);
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church")).'<br>';
   
$date=date('l Y-m-d');
    echo
'<br>'. $date.'<br>';
   
$date=date('Y-m-d');
   
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church")).'<br>';
   
   
   
$date='2099-12-31';
    echo
'<br>'. $date.'<br>';
   
$day=new dayofweekfinder(new vpdd(explode("-",$date)));
    echo
'<br>'.$day->getday("EN");
    echo
'<br>'.$day->getday("ES");
    echo
'<br>'.$day->getday("FR");
    echo
'<br>'.$day->getday("ha");
    echo
'<br>'.$day->getday("hi");
    echo
'<br>'.$day->getday("yi");
    echo
'<br>'.$day->getday("ru");
    echo
'<br>'.$day->getday("IT");
    echo
'<br>'.$day->getday("ko");
    echo
'<br>'.$day->getday("zh-CN");
    echo
'<br>'.$day->getday("tr");
    echo
'<br>'.$day->getday("AR");
    echo
'<br>'.$day->getday("DE");
    echo
'<br>'.$day->getday("HE");
    echo
'<br>'.$day->getday("aHE");
    echo
'<br>'.$day->getday("DU");
    echo
'<br>'.$day->getday("myself",array("nana","papa","mama","caca","masjid","zozo","church"));
?>