Test Ar-PHP Functionality Online

header line!
Test PHP Function






















Ar-PHP Manual

method setConf [line 352]

object setConf( [string $sch = 'Shafi'], [decimal $sunriseArc = -0.833333], [decimal $ishaArc = -17.5], [decimal $fajrArc = -19.5], [string $view = 'Sunni'])

Setting rest of Salat calculation configuration

Convention Fajr Angle Isha Angle

Muslim World League -18 -17

Islamic Society of North America (ISNA) -15 -15

Egyptian General Authority of Survey -19.5 -17.5

Umm al-Qura University, Makkah -18.5 Isha 90 min after Maghrib, 120 min during Ramadan

University of Islamic Sciences, Karachi -18 -18

Institute of Geophysics, University of Tehran -17.7 -14(*)

Shia Ithna Ashari, Leva Research Institute, Qum -16 -14

(*) Isha angle is not explicitly defined in Tehran method Fajr Angle = $fajrArc, Isha Angle = $ishaArc

  • حزب العلماء في لندن لدول
أوروبا في خطوط عرض تزيد على 48

$ishaArc = -17 $fajrArc = -17




Tags:

return:  to build a fluent interface
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $sch   [Shafi|Hanafi] to define Muslims Salat calculation method (affect Asr time)
decimal   $sunriseArc   Sun rise arc (default value is -0.833333)
decimal   $ishaArc   Isha arc (default value is -18)
decimal   $fajrArc   Fajr arc (default value is -18)
string   $view   [Sunni|Shia] to define Muslims Salat calculation method (affect Maghrib and Midnight time)

Example
  1.      date_default_timezone_set('UTC');
  2.  
  3.      include('./I18N/Arabic.php');
  4.      $obj new I18N_Arabic('Salat');
  5.  
  6.      $obj->setLocation(33.513,36.292,2);
  7.      $obj->setDate(date('j')date('n')date('Y'));
  8.  
  9.      $times $obj->getPrayTime();
  10.  
  11.      echo '<b>Damascus, Syria</b><br />';
  12.      echo date('l F j, Y').'<br /><br />';
  13.  
  14.      echo "<b class=hilight>Imsak:</b> {$times[8]}<br />";
  15.      echo "<b class=hilight>Fajr:</b> {$times[0]}<br />";
  16.      echo "<b class=hilight>Sunrise:</b> {$times[1]}<br />";
  17.      echo "<b class=hilight>Zuhr:</b> {$times[2]}<br />";
  18.      echo "<b class=hilight>Asr:</b> {$times[3]}<br />";
  19.      echo "<b class=hilight>Sunset:</b> {$times[6]}<br />";
  20.      echo "<b class=hilight>Maghrib:</b> {$times[4]}<br />";
  21.      echo "<b class=hilight>Isha:</b> {$times[5]}<br />";
  22.      echo "<b class=hilight>Midnight:</b> {$times[7]}<br />";
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa