i have two time values say starttime=23:00:00 and estimation time=00:45:00 now i want to add starttime and estimation time and store it in a variable i did like this
$add = abs(strtotime($starttime) + strtotime($estimationtime));
and now i have to compare a new time say currenttime or any other time interval (23:50:00)
if($time >=$starttime && $time <=$add)
{
$message=array("message"=>"there is an appointment");
}
if i echo $add i am not getting the right format it shows 2675756700
pls help me to solve this