小册名称:PHP8入门与项目实战(4)
可使用date()函数返回当前日期,若在date()函数中使用参数U,则返回当前时间的UNIX时间戳;若使用参数d,则直接返回当前月份的01到31日的两位数日期。
然而,date()函数有很多参数,具体含义如表7-1所示。