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. Check checkdate
(PHP 4, PHP 5)
Checkdate-verify a greaguri date
Description: bool checkdate (int $ month, int $ day, int $ year)
If the given date is valid, TRUE is returned; otherwise, FALSE is returned. Checks the validity of a date composed of parameters. The date is considered valid in the following cases:
- The year value ranges from 1 to 32767.
- The value of month ranges from 1 to 12.
- The value of Day is within the range of days that a given month should have. a leap year has been taken into account.
Example #1 checkdate ()
The above routine will output:
Bool (true) bool (false)
The http://www.bkjia.com/PHPjc/447018.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/447018.htmlTechArticlecheckdate (PHP 4, PHP 5) checkdate verifies a gregalle date description boolcheckdate (int $ month, int $ day, int $ year) returns TRUE if the given date is valid, otherwise, FALSE is returned. Check...