PHP Classes

File: example.php

Recommend this page to a friend!
  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: 11 years ago
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();