Example Output:

Damascus, Syria Thursday October 1, 2026

Imsak: 4:49
Fajr: 4:59
Sunrise: 6:24
Dhuhr: 12:25
Asr: 15:47
Sunset: 18:25
Maghrib: 18:27
Isha: 19:40
Midnight: 0:25

Imsak: Thursday 1 October 2026 4:49 am
Fajr: Thursday 1 October 2026 4:59 am
Sunrise: Thursday 1 October 2026 6:24 am
Dhuhr: Thursday 1 October 2026 12:25 pm
Asr: Thursday 1 October 2026 3:47 pm
Sunset: Thursday 1 October 2026 6:25 pm
Maghrib: Thursday 1 October 2026 6:27 pm
Isha: Thursday 1 October 2026 7:40 pm
Midnight: Friday 2 October 2026 12:25 am

Qibla Direction (from the north direction): 164.70473621919 (click here)


Example Code:

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

    
// Latitude, Longitude, Zone, and Elevation
    
$Arabic->setLocation(33.52, 36.31, 3, 691);
    
    
// Month, Day, and Year
    
$Arabic->setDate(date('n'), date('j'), date('Y'));

    echo 
"<b>Damascus, Syria</b> ".date('l F j, Y')."<br /><br />";

    
// Salat calculation configuration: Egyptian General Authority of Survey
    
$Arabic->setConf('Shafi', -0.833333,  -17.5, -19.5, 'Sunni');
    
$times = $Arabic->getPrayTime();
    
    echo 
"<b>Imsak:</b> {$times[8]}<br />";
    echo 
"<b>Fajr:</b> {$times[0]}<br />";
    echo 
"<b>Sunrise:</b> {$times[1]}<br />";
    echo 
"<b>Dhuhr:</b> {$times[2]}<br />";
    echo 
"<b>Asr:</b> {$times[3]}<br />";
    echo 
"<b>Sunset:</b> {$times[6]}<br />";
    echo 
"<b>Maghrib:</b> {$times[4]}<br />";
    echo 
"<b>Isha:</b> {$times[5]}<br />";
    echo 
"<b>Midnight:</b> {$times[7]}<br /><br />";

    echo 
'<b>Imsak:</b> '   .date('l j F Y g:i a', $times[9][8]).'<br />';
    echo 
'<b>Fajr:</b> '    .date('l j F Y g:i a', $times[9][0]).'<br />';
    echo 
'<b>Sunrise:</b> ' .date('l j F Y g:i a', $times[9][1]).'<br />';
    echo 
'<b>Dhuhr:</b> '   .date('l j F Y g:i a', $times[9][2]).'<br />';
    echo 
'<b>Asr:</b> '     .date('l j F Y g:i a', $times[9][3]).'<br />';
    echo 
'<b>Sunset:</b> '  .date('l j F Y g:i a', $times[9][6]).'<br />';
    echo 
'<b>Maghrib:</b> ' .date('l j F Y g:i a', $times[9][4]).'<br />';
    echo 
'<b>Isha:</b> '    .date('l j F Y g:i a', $times[9][5]).'<br />';
    echo 
'<b>Midnight:</b> '.date('l j F Y g:i a', $times[9][7]).'<br /><br />';
    
    
$direction = $Arabic->getQibla();
    echo 
"<b>Qibla Direction (from the north direction):</b> $direction<br />";
    echo 
"(<a href=\"./Qibla.php?d=$direction\" target=_blank>click here</a>)<br /><br/>";

Total execution time is 0.0054271221160889 seconds
Amount of memory allocated to this script is 483376 bytes

Names of included or required files:

Related Class Documentation