如何在PHP中查找一年中的当前日期? [英] How to find the current day of the year in PHP?
本文介绍了如何在PHP中查找一年中的当前日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
PHP中是否有一个标准函数可以根据当前日期查找一年中的天数?
Is there a standard function in PHP that will find the day number of the year based on the current date?
示例:
Jan 22nd = 22
Feb 27th = 58
Mar 5th = 64
如果没有标准功能,是否有人构建了可以处理转换的类似功能?都涉及什么?
If there isn't a standard function, has anyone built anything similar that would handle the conversion? What all is involved?
推荐答案
date('z') + 1;
这篇关于如何在PHP中查找一年中的当前日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文