Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Hossam Suliman  >  One Hijri Year Calendar  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of class usage
Class: One Hijri Year Calendar
Display a month or an year of the Hijri calendar
Author: By
Last change: - Make it accessible without user login.
Date: 2012-12-03 13:34
Size: 385 bytes
 

Contents

Class file image Download
<?php

/**
 * Example of HijriCalendar class usage.
 *
 * @author Hossamzee.
 * @date 3 Dec 2012.
 */

require_once("./HijriCalendar.class.php");

/* Create a new instance of HijriCalendar class. */ 
$hijriCalendar = new HijriCalendar();

/* Set Hijri year. */
$hijriCalendar->hijriYear 1434;

/* Print the result. */ 
echo $hijriCalendar->getHijriYearCalendar();