<?php
require_once('salatClass.class.php');
//$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++)
{
echo $tm[$i] . '<br>';
}
?>
|