PHP easter_days() လုပ်ဆောင်ချက်
ဥပမာ
အီစတာနေ့သည် ကွဲပြားသောနှစ်များအတွက် မတ် 21 ပြီးနောက် ရက်အရေအတွက်ကို ပုံနှိပ်ပါ။
<?php
echo "Easter Day is ". easter_days() . " days after March 21 this year.<br />";
echo "Easter Day was ". easter_days(1990) . " days after March 21 in 1990.<br />";
echo "Easter Day was ". easter_days(1342) . " days after March 21 in 1342.<br />";
echo "Easter Day will be ". easter_days(2050) . " days after March 21 in 2050.";
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
easter_days() လုပ်ဆောင်ချက်သည် ပေးထားသောနှစ်တွင် အီစတာနေ့ဖြစ်ပြီး မတ်လ 21 ရက်ပြီးနောက် ရက်အရေအတွက်ကို ပြန်ပေးသည်။
အကြံပြုချက်- အီစတာနေ့၏ရက်စွဲကို Spring Equinox (မတ်လ 21 ရက်) တွင် ကျရောက်သော ပထမလပြည့်ပြီးနောက် တနင်္ဂနွေအဖြစ် သတ်မှတ်ထားသည်။
အထားအသို
easter_days(year,method);
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
year | Optional. Specifies a year as a number. Default is the current year, local time |
method | Optional. Allows you to calculate easter dates based on other calendars. E.g. it uses the Gregorian calendar during the years 1582 - 1752 when set to CAL_EASTER_ROMAN |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ပေးထားသောနှစ်တွင် အီစတာနေ့ဖြစ်သည့် မတ်လ 21 ရက်ပြီးနောက် ရက်အရေအတွက်ကို ပြန်ပေးသည်။ |
---|---|
PHP ဗားရှင်း- | 4+ |
ပြောင်းလဲမှုမှတ်တမ်း- | PHP 4.3 တွင် year parameter သည် optional ဖြစ်လာပြီး method parameter ကိုထည့်ထားသည် ။ |
❮ PHP Calendar အကိုးအကား