skip to main
|
skip to sidebar
Programming Tips
PHP coding tips
Tuesday, December 29, 2009
PHP: How get the number of days in month
Easiest way to get number of days in month are to use
date
function.
echo date("t",mktime(0,0,0,$month,1,$year);
Also this will work with leap year.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2010
(2)
►
January
(2)
▼
2009
(8)
▼
December
(8)
PHP: date functions usage
PHP: simple but powerful file upload class
PHP: how validate email
PHP: watermarks
How to check whick php version you are running
PHP: how delete folder with subfolders
PHP: How get the number of days in month
PHP: sort an array with a user-defined comparison ...
No comments:
Post a Comment