help me in calculating exact time with AM and PM
$time1 = strtotime(10:00); /// in pm
$time1 = strtotime(08:00); ///// answer should come in am calculation
is exact but not the am pm value
$count = date ('g:i ' ,strtotime($time1 . '+' . $time2));
My Problem is if i calculate time i calculate it correctly as i want but how can i set the PM and AM to time if i take 10:00 PM time add 4 hour to it now time is 02:00 AM how to get that AM PM value with time and any help with subtract time how we subtract time