Last active
August 29, 2015 14:07
-
-
Save rawcreative/c67f47b8d6508e6017c5 to your computer and use it in GitHub Desktop.
PHP cal_days_in_month() workaround for HHVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!function_exists('cal_days_in_month')) | |
{ | |
function cal_days_in_month($calendar, $month, $year) | |
{ | |
return date('t', mktime(0, 0, 0, $month, 1, $year)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment