how to calculate time difference php?
PHP Function to Calculate Hours Difference php function differenceInHours($startdate,$enddate){ $starttimestamp = strtotime($startdate); $endtimestamp = strtotime($enddate); $difference = abs($endtimestamp - $starttimestamp)/3600; return $difference; } if(!