Mega Code Archive

 
Categories / Php / Date Time
 

Number days any month

<?php $lastday = mktime(0, 0, 0, 3, 0, 2006); printf("There are %d days in February, 2006.", date("t",$lastday)); ?>