How to get current month days using php?

I wants to get days of current month Or for a given date eg: "2015-12-03" so output should be 31

Asked 16 Dec, 15 at 06:03 PM

Rishu Singh
Php

Answer

Use: Date("t", Date("Y-m-d"));

like