Saturday, January 17, 2009
PHP Functions #0001 - checkdate
Keywords: PHP Functions, Checkdate, Validate date
checkdate — Validate a Gregorian date
Syntax - bool checkdate ( int $month , int $day , int $year )
Description - Checks the validity of the date formed by the arguments. A date is considered valid if each parameter is properly defined.
Return Value - Returns TRUE if the date given is valid; otherwise returns FALSE.
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 year s are taken into consideration.
year - The year is between 1 and 32767 inclusive.
echo checkdate(12, 31, 2000); print_r( checkdate(12, 31, 2000) );
Keywords: PHP Functions, Checkdate, Validate date
Featured Blog Topics:
- MySQL LEFT JOIN - http://kathyravan.blogspot.com/2009/01/mysql-left-join.html
- MySQL SQL_CACHE - http://kathyravan.blogspot.com/2008/12/mysql-sqlcache.html
- MySQL Query Caching - http://kathyravan.blogspot.com/2008/12/mysql-query-cache.html
- MySQL Show - http://kathyravan.blogspot.com/2008/12/mysql-show-statements.html
- CSV - MySQL Storage Engine - http://kathyravan.blogspot.com/2008/12/csv-mysql-storage-engine.html
- Blackhole - MySQL Storage Engine - http://kathyravan.blogspot.com/2008/12/blackhole-mysql-storage-engine.html
- Memory - MySQL Storage Engine (Formerly Heap Storage Engine) - http://kathyravan.blogspot.com/2008/12/memory-mysql-storage-engine-formerly.html
- Xml in MySQL - http://kathyravan.blogspot.com/2008/03/xml-in-mysql.html
- Forgot mySQL root Password? - http://kathyravan.blogspot.com/2008/02/forgot-mysql-root-password.html
- Samba - Installation & Configuration - http://kathyravan.blogspot.com/2008/02/samba-installation-configuration.html
- Enabling HTTP Authentication in Apache - http://kathyravan.blogspot.com/2008/08/enabling-http-authentication-in-apache.html
- PHP Function: isFTPFileExists (Searching a FILE in FTP) - http://kathyravan.blogspot.com/2008/12/php-function-isftpfileexists-searching.html
- Shell Scripting & Linux - http://kathyravan.blogspot.com/search/label/Shell%20Scripts
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment