PHP code snippet – How to get the number of days in the current month using carbon? Subash Chandran 20th November 2021 Leave a Comment Carbon\Carbon::now()->daysInMonth Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Related See also PHP code snippet - How to check if page is accessed via post? Snippets carbon add days to current date, carbon get total days of current month, how to calculate 30 days from a date with carbon php, laravel carbon get total days of month Change font size A Decrease font size. A Reset font size. A Increase font size.