PHP Classes
elePHPant
Icontem

File: examples/datestring_time.php

Recommend this page to a friend!
  Classes of Erisan-fifth Olasheni  >  PHP Nigerian Time  >  examples/datestring_time.php  >  Download  
File: examples/datestring_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: 2 months ago
Size: 650 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 datestring
echo $yoruba->getTime("2017-10-09 12:34:00");

echo
$igbo->getTime("2017-10-09 12:34:00");

echo
$hausa->getTime("2017-10-09 12:34:00");

echo
$english->getTime("2017-10-09 12:34:00");