PHP中的Easter_days()函数
Eastern_days()函数返回3月21日之后的天数,复活节在指定的年份落在该天数上。
语法
eastern_days(year, method)
参数
year-1970年至2037年之间的年份。默认值为当前年份,本地时间
方法-根据其他日历计算复活节日期。
返回
Easter_days()函数将复活节日期作为unix时间戳返回。
示例
以下是一个例子-
<?php echo "Easter Day was ". easter_days(2017) . " days after March 21 in the year 2017"; ?>
输出结果
Easter Day was 26 days after March 21 in the year 2017
热门推荐
10 祝亲友祝福语大全简短
11 祝贺升职文案祝福语简短
12 鲜花礼物结婚祝福语简短
13 祝福语简短文案梳子
14 寿宴文案短句祝福语简短
15 回复群内祝福语简短
16 幼师辞职后祝福语简短
17 朋友领证花束祝福语简短
18 对患者生日祝福语简短