- Output for 5.3.0 - 5.3.20, 5.4.0 - 5.4.10
- Parse error: syntax error, unexpected '(', expecting ')' in huXm2 on line 3
Process exited with code 255.
<?php
function getLastDay($mes = date('m'), $ano = date('Y')) {
$data = $ano . '-' . $mes . '-' . '01';
return date('t', strtotime($data));
}
echo getLastDay();