PHP: checkdate - Manual in Deutsh
PHP: checkdate - Manual in French
PHP: checkdate - Manual in Polish

You Are At PHP: checkdate - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

checkdate

(PHP 3, PHP 4, PHP 5)

checkdate -- Validate a Gregorian date

Description

bool checkdate ( int month, int day, int year )

Checks the validity of the date formed by the arguments. A date is considered valid if each parameter is properly defined.

Parameters

month

The month is between 1 and 12 inclusive.

day

The day is within the allowed number of days for the given month. Leap years are taken into consideration.

year

The year is between 1 and 32767 inclusive.

Return Values

Returns TRUE if the date given is valid; otherwise returns FALSE.

Examples

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)

See Also

mktime()
strtotime()

Jak ograniczyć jedzenie słodyczy Jak ograniczyć jedzenie słodyczy
6
www.finansowo.podejrzliwy.kalisz.pl
Prezenty
tanie holowanie Rzeszów

Another Useful functions:


zend-api.zend-check-protected | zend-api.zend-check-property-access | zend-api.zend-check-private | zend-api.zend-check-magic-method-implementation | zend-api.mem-block-check | zend-api.full-mem-check | function.udm-check-stored | function.udm-check-charset | function.tcpwrap-check | function.pspell-check | function.php-check-syntax | function.pharfileinfo-iscrcchecked | function.openssl-x509-checkpurpose | function.openssl-x509-check-private-key | function.newt-checkbox | function.newt-checkbox-tree | function.newt-checkbox-tree-set-width | function.newt-checkbox-tree-set-entry | function.newt-checkbox-tree-set-entry-value | function.newt-checkbox-tree-set-current | function.newt-checkbox-tree-multi | function.newt-checkbox-tree-get-selection | function.newt-checkbox-tree-get-multi-selection | function.newt-checkbox-tree-get-entry-value | function.newt-checkbox-tree-get-current | function.newt-checkbox-tree-find-item | function.newt-checkbox-tree-add-item | function.newt-checkbox-set-value | function.newt-checkbox-set-flags | function.newt-checkbox-get-value | function.mb-check-encoding | function.m-checkstatus | function.imap-check | function.hwapi-checkout | function.hwapi-checkin | function.enchant-dict-quick-check | function.enchant-dict-check | function.dns-check-record | function.crack-check | function.checkdnsrr | function.checkdate | function.aspell-check | function.aspell-check-raw |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.