I need help to get month count between 2 dates:
$date1 = "2013-01-15";
$date2 = "2013-04-15";
I need to get the result of: 4
, which are Jan
, Feb
, Mar
, and Apr
from the above variables.
Is there a simple way to get the result instead by exploding those dates?
Thank you.