note 34232 rejected from function.cal-days-in-month by didou

From: Date: Sat, 16 Aug 2003 15:10:48 +0000
Subject: note 34232 rejected from function.cal-days-in-month by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54381@lists.php.net to get a copy of this message
Note Submitter: fie@myrealbox.com ---- // FORMER $dim = date("t", mktime(0, 0, 0, date("m"), 1, date("Y"))); //LATTER $dim = array(31,28,31,30,31,30,31,31,30,31,30,31); if($date[year] % 4 == 0)$daysinmonth[1] = 29; $daysinmonth = $dim[$date[mon]-1]; in my tests the latter succeeded the former.. DONT BE FOOLED JUST BECAUSE THEY ARE PREINSTALLED DOSNT MEAN THAT THEY WILL WORK FASTER! also supposedly the time in php will fail to work in 2037, which i hope they fix in php5 but i'm just making a point. Mine is like cross-language and slightly faster or whatever yea ok.

« previous php.notes (#54381) next »