<?php function getLastDay($mes, $ano) { $data = $ano . '-' . $mes . '-' . '01'; return date('t', strtotime($data)); } echo getLastDay(02, 2012);
You have javascript disabled. You will not be able to edit any code.