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
热门推荐
3 祝福语简短的微信
10 幼儿祝福语大全简短贺卡
11 感谢教官文案祝福语简短
12 鼠年同事祝福语简短创意
13 元旦祝福语 简短独特群发
14 妈咪跟我生日祝福语简短
15 给儿子新婚祝福语简短
16 伴娘祝福语长文案简短
17 恭喜高考完祝福语简短
18 生日祝福语送老公简短