Last active
July 13, 2018 13:09
-
-
Save BackEndTea/783e015f4901e2ba6bd678829fae9dcb to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| $days = ($month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year %400 ? 28 : 29))) : (($month - 1) % 7 % 2 ? 30 : 31)); //returns days in the given month |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment