get age in months php

Solutions on MaxInterview for get age in months php by the best coders in the world

showing results for - "get age in months php"
Cassandre
07 Jun 2017
1$interval = date_diff(date_create(), date_create('2008-01-01 10:30:00'));
2echo $interval->format("You are  %Y Year, %M Months, %d Days, %H Hours, %i Minutes, %s Seconds Old");
3