note 86703 deleted from function.date by danbrown

From: Date: Thu, 30 Oct 2008 20:56:39 +0000
Subject: note 86703 deleted from function.date by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-145979@lists.php.net to get a copy of this message
Note Submitter: mr dot davin at gmail dot com Reason: bad code ---- Number of weeks in a given month <?php function weeksinmonth($s) { $s = mktime (0,0,0,date('m',$s),1,date('Y',$s)); return ceil((date('w',$s) + date('t',$s)) / 7); } ?>

« previous php.notes (#145979) next »