Example Output:

Damascus, Syria Tuesday February 9, 2010

Fajr: 6:13
Sunrise: 7:40
Zuhr: 13:00
Asr: 15:56
Maghrib: 18:19
Isha: 19:46

Qibla Direction (from the north direction): -21.998694670557

Example Code:

<?php
    date_default_timezone_set
('UTC');
    
    include(
'I18N_Arabic.php');
    
$Arabic = new I18N_Arabic('Salat');

    
$Arabic->setLocation(33.51336.2923);
    
$Arabic->setDate(date('j'), date('n'), date('Y'));

    
$times $Arabic->getPrayTime();

    echo 
"<b>Damascus, Syria</b> ".date('l F j, Y')."<br /><br />";
    echo 
"<b>Fajr:</b> {$times[0]}<br />";
    echo 
"<b>Sunrise:</b> {$times[1]}<br />";
    echo 
"<b>Zuhr:</b> {$times[2]}<br />";
    echo 
"<b>Asr:</b> {$times[3]}<br />";
    echo 
"<b>Maghrib:</b> {$times[4]}<br />";
    echo 
"<b>Isha:</b> {$times[5]}<br />";

    
$direction $Arabic->getQibla();
    echo 
"<b>Qibla Direction (from the north direction):</b> $direction<br />";
?>

Total execution time is 0.0040619373321533 seconds
Amount of memory allocated to this script is 318080 bytes

Names of included or required files:

Related Class Documentation