Skip to content

PHP tip: PHP how many days in a month?

by Vinícius Krolow on agosto 16th, 2010
1
2
3
< ?php
echo cal_days_in_month(CAL_GREGORIAN, date('m'), date('Y')), ' days.';
?>

Read about the function.

From → php

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS