The time is in this format - 09:00:00 - which is 09:30:00. I then need to add 30 minutes to this and store that in a separate variable dynamically.
Example:
$selectedTime = "9:00:00";
$endTime = strtotime("+30 minutes", strtotime($selectedTime));
echo date('h:i:s', $endTime);
output:
9:00:00 to 9:30:00
9:31:00 to 10:00:00
10:01:00 to 10:30:00, etc