PHP Classes

File: examples/timestamp_time.php

Recommend this page to a friend!
  Classes of Erisan-fifth Olasheni   PHP Nigerian Time   examples/timestamp_time.php   Download  
File: examples/timestamp_time.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Nigerian Time
Spell date and time values in Nigerian dialects
Author: By
Last change:
Date: 5 years ago
Size: 589 bytes
 

Contents

Class file image Download
<?php
require __DIR__ . '/../vendor/autoload.php';

// Import Yoruba Time Class
use LanguageTime\English;

//Import Igbo Time Class
use LanguageTime\Hausa;

//Import Hausa Time Class
use LanguageTime\Igbo;

//Import English Time Class
use LanguageTime\Yoruba;

// Instantiate your classes

// For Yoruba
$yoruba = new Yoruba();
// For Igbo
$igbo = new Igbo();
// For Hausa
$hausa = new Hausa();
// For English
$english = new English();

//Call time from timestamp
echo $yoruba->getTime(time());

echo
$igbo->getTime(time());

echo
$hausa->getTime(time());

echo
$english->getTime(time());