这是一个真正的日期 [英] Is it a real date

查看:113
本文介绍了这是一个真正的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP有一个功能,可以帮助你找出一个日期是否是真实的日期。例如 2011年2月29日不是一个真实的,因为今年2月只有28天。这是我问的那种真正的日期。 PHP有什么帮助吗?

解决方案

你想使用checkdate: http://php.net/manual/en/function.checkdate.php


Does PHP have a function that could help find out if a date is a real date. For example February 29, 2011 is not a real because this year February has only 28 days. This is the sort of "real date" I'm asking about. Does PHP have something to help?

解决方案

You want to use checkdate: http://php.net/manual/en/function.checkdate.php

这篇关于这是一个真正的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆