开发者

What is the RFC 2822 date format in PHP (without using date('r'))?

Is date('D, j M Y H:i:s O') equivalent to date('r') (RFC 2822 date) in PHP? I'm asking because 'r' seems to be non-working with the format parameter of date_parse_from_for开发者_JS百科mat.


You can use date(DateTime::RFC2822); if you want dates in the RFC 2822 format.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜