Php checks the usage instance of the date function checkdate and the checkdate instance. Php checks the checkdate usage instance of the date function. the checkdate instance in this document describes the php checkdate usage of the date function.
PHP Check Date function checkdate Usage instance, checkdate instance
This example describes the PHP check date function checkdate usage. Share to everyone for your reference. The specific analysis is as follows:
You can use the Checkdate function
Php checks the usage of the date function checkdate instance
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful. For more information,
We all know that there are 12 months in a year, one months have 31 days (or 30 days, February has 28 days, leap year February has 29 days), one weeks have 7 days, 24 hours a day ... Wait a minute. But our computer does not know Ah, it is not able to
This article describes the PHP check date function checkdate usage. Share to everyone for your reference. The specific analysis is as follows:
PHP can use the Checkdate function to verify the correctness of the date.
Grammar
Integer checkdate
Example of using php to check the date function checkdate
Syntax Integer checkdate (int % Month, int $ Day, int $ Year ); Demo code
Echo "2/29/1900 ";
Checkdate (2, 29,190 0 )? Print "is Valid": print "is not
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful. For more information, see
This article mainly introduces the usage of the date
Checkdate verifies a greaguri date. Checkdate (PHP4, PHP5) checkdate is used to verify the description of a greaguri date boolcheckdate (int $ month, int $ day, int $ year). If the given date is valid, TRUE is returned. otherwise, FALSE is returned.
PHP checkdate () date judgment function example tutorialDefinition and usageThis checkdate () function returns true, except false if it is valid on the specified date.The date is valid. If:1 to 12 inclusive every monthThe number of days allowed in a
This article mainly introduces the usage of the date function checkdate in php, and analyzes the usage skills of the checkdate function in php, which is very useful, for more information about how to use the php checkdate function, see the example
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.