I am facing a problem while printing exact age using php. The years of the age are printing exactly but when it comes to months and days they often goes to negative values.
Here is the snippet of the code and full code is here.
$ag = date('Y') - substr($row11['dob'],6);
$mn = date('m') - substr($row11['dob'],3,2);
$dy = date('d') - substr($row11['dob'],0,2);