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 公司28 周年祝福语简短
13 新婚祝福语有趣文案简短
14 同事辞职正常祝福语简短
15 九子订婚祝福语简短
16 公司开年仪式祝福语简短
17 老哥出门祝福语简短语
18 老爸生日暴富祝福语简短