note 43090 added to function.checkdate

From: Date: Wed, 09 Jun 2004 13:57:44 +0000
Subject: note 43090 added to function.checkdate
Groups: php.notes 
Request: Send a blank email to php-notes+get-70543@lists.php.net to get a copy of this message
I used this function to determine the last day of a month. If you know an easier way you can always post it here. function last_day_of_month ($month, $year) { $day=0; while ( 1 ) { $day++; if ( !( checkdate($month,$day,$year) ) ) { break; } } return ($day-1); } ---- Manual Page -- http://www.php.net/manual/en/function.checkdate.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43090 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43090&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43090&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70543) next »