Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Last of the month

Prints the last day of the current month.



<?php
function LastDayOfMonth($month){
    $DaysInMonth = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
    $LastDay = $DaysInMonth[$month - 1];
    return $LastDay;
}
$LastDayOfCurrentMonth = LastDayOfMonth(date(n));
echo $LastDayOfCurrentMonth;
?>


Download code...


Print this page


 

Inizio pagina

risorse per webmaster