|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » session_start() » preg_match_all() » htmlspecialchars() » ob_start() » ob_flush() » flush() » strstr() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: checkdate (PHP 3, PHP 4, PHP 5) checkdate -- Validate a Gregorian dateDescriptionbool checkdate ( int month, int day, int year )Returns TRUE if the date given is valid; otherwise returns FALSE . Checks the validity of the date formed by the arguments. A date is considered valid if:
year is between 1 and 32767 inclusive month is between 1 and 12 inclusive Day is within the allowed number of days for the given month . Leap year s are taken into consideration.
Example 1. checkdate() example <?php var_dump(checkdate(12, 31, 2000)); var_dump(checkdate(2, 29, 2001)); ?> The above example will output: bool(true) bool(false) Related Function(s) |