PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of KHALID  >  PHP Muslim Salat Times Calculation  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: PHP Muslim Salat Times Calculation
Calculate muslim prayer times in any world city
Author: By
Last change:
Date: 5 years ago
Size: 686 bytes


Class file image Download

//$city array($name, $latitude, $longitude, $time_zone, $Fajr_twilight, $Isha_twilight, $asr_hanafi)
$city = array("Tanger", "35.7847" , "-5.8128", 0, -19.5, -17.5, false);

//Minutes to add/remove frm calcilations for more accuracy, if any. array($Fajr, $Dhohr, $Asr, $Maghrib, $Isha)
$mintoadd = array(0,0,0,0,0);

//Date to calculae for, default today array($year, $month, $day)
$DayToCalculate = array(date('Y'), date('m'), date('d'));

$salat = new SalatTimes($city, $mintoadd, $DayToCalculate);

$tm = $salat->calculate();
  for (
$i=0; $i < 5 ; $i++)
$tm[$i] . '<br>';


For more information send a message to info at phpclasses dot org.